Libraryless. Click here for Pure Java version (5037L/28K).
1 | static <A> bool lambdaMapLike containsPred(IF1<A, Bool> pred, Iterable<A> l) { |
2 | ret any(pred, l); |
3 | } |
4 | |
5 | static <A> bool containsPred(Iterable<A> l, IF1<A, Bool> pred) { |
6 | ret any(pred, l); |
7 | } |
Began life as a copy of #1021427
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034506 |
Snippet name: | containsPred - partial synonym of any |
Eternal ID of this version: | #1034506/1 |
Text MD5: | 413c485c9bbc6f44f2893b583679c419 |
Transpilation MD5: | 4a792b6379f472b986743af0ac3af7ec |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-10 02:34:56 |
Source code size: | 194 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 128 / 193 |
Referenced in: | [show references] |