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


< > BotCompany Repo | #1011591 - all

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

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

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

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

static <A> bool lambdaMapLike all(IF1<A, Bool> f, Iterable<A> l) {
  ret all(l, f);

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1011591
Snippet name: all
Eternal ID of this version: #1011591/5
Text MD5: 7fe5d30bb970c782654ccbb76df7206d
Transpilation MD5: bff1de38fecca437e0a8eea2a556ec7b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-04 17:26:13
Source code size: 326 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 209
Version history: 4 change(s)
Referenced in: [show references]

Formerly at &