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

9
LINES

< > BotCompany Repo | #1011591 - all

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

Libraryless. Click here for Pure Java version (2137L/14K).

sbool mapLike all(O pred, Collection l) {
  if (l != null) for (O o : l) if (!isTrue(callF(pred, o))) false;
  true;
}

static <A> bool all(Iterable<A> l, IF1<A, Bool> f) {
  if (l != null) for (A a : l) if (!f.get(a)) false;
  true;
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1011591
Snippet name: all
Eternal ID of this version: #1011591/3
Text MD5: 68dc31f257993ff2268e2d0c46bbd7b1
Transpilation MD5: 59233de542d0511676855b0e9aff7203
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-09 12:58:30
Source code size: 243 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 152
Version history: 2 change(s)
Referenced in: [show references]