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

11
LINES

< > BotCompany Repo | #1014128 // mapVoid - map without returning a value

JavaX fragment (include)

static <A> void mapVoid(VF1<A> f, Iterable<A> c) {
  if (f == null) ret;
  for (A a : unnull(c))
    f.get(a);
}

static <A> void mapVoid(O f, Iterable<A> c) {
  if (f == null) ret;
  for (A a : unnull(c))
    callF(f, a);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014128
Snippet name: mapVoid - map without returning a value
Eternal ID of this version: #1014128/2
Text MD5: 3528630eda51a2f40d6fe5f86e720f48
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-29 16:21:59
Source code size: 234 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 352 / 406
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014133 - mapVoidMulti - call multiple functions on a list