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

12
LINES

< > BotCompany Repo | #1032826 // forEachClone - clone list first

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

Libraryless. Click here for Pure Java version (3814L/22K).

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

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

static <A> void forEachClone(A[] l, IVF1<A> f) {
  forEach(l, f);
}

Author comment

Began life as a copy of #1022895

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032826
Snippet name: forEachClone - clone list first
Eternal ID of this version: #1032826/1
Text MD5: b45fe1d1c3b207022703e4c92623aae7
Transpilation MD5: 039c02e67850624dd17cefebdf13c8be
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 14:04:28
Source code size: 306 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 64 / 95
Referenced in: [show references]