Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1032108 // forEach_pcall

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3208L/18K).

static <A> void forEach_pcall(Iterable<A> l, IVF1<A> f) {
  if (f != null && l != null) for (A a : l)
    pcallF(f, a);
}

static <A> void lambdaMapLike forEach_pcall(IVF1<A> f, Iterable<A> l) {
  forEach_pcall(l, f);
}

static <A> void forEach_pcall(A[] l, IVF1<A> f) {
  if (f != null && l != null) for (A a : l)
    pcallF(f, a);
}

Author comment

Began life as a copy of #1022895

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032108
Snippet name: forEach_pcall
Eternal ID of this version: #1032108/1
Text MD5: 7e6a89e8ea942d929a494ee4ee86ff61
Transpilation MD5: fbe2dcdfd5738440f425d38ee18e7443
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-13 22:45:50
Source code size: 346 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 68 / 112
Referenced in: [show references]