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

6
LINES

< > BotCompany Repo | #1030655 // syncLambdaMap - lambdaMap with syncing on list

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

Libraryless. Click here for Pure Java version (2769L/16K).

static <A, B> L<B> lambdaMapLike syncLambdaMap(IF1<A, B> f, Cl<A> l) {
  if (l == null) ret emptyList();
  synchronized(collectionMutex(l)) {
    ret map(l, f);
  }
}

Author comment

Began life as a copy of #1026014

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030655
Snippet name: syncLambdaMap - lambdaMap with syncing on list
Eternal ID of this version: #1030655/1
Text MD5: c2e0c8a21b6df8b71dec9f01f5540de3
Transpilation MD5: 41145b0e21d7d87c8d819d5932ec36d3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-02-20 15:19:37
Source code size: 171 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 208 / 278
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)