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

5
LINES

< > BotCompany Repo | #1028711 // AnyElementSatisfies

JavaX fragment (include)

static transformable record AnyElementSatisfies<A>(O pred) implements ITheoryOn<Iterable<A>> {
  public bool check(Iterable l) {
    ret any(pred, l);
  }
}

Author comment

Began life as a copy of #1028702

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028711
Snippet name: AnyElementSatisfies
Eternal ID of this version: #1028711/2
Text MD5: 61ff10fe664bba6579c6902b14eb8af6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-06 01:34:20
Source code size: 160 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 139 / 367
Version history: 1 change(s)
Referenced in: [show references]