Libraryless. Click here for Pure Java version (10045L/55K).
static <A, B> LPair<A, B> filterPairB(IPred<B> pred, Iterable<Pair<A, B>> c) { ret filterPairB(c, pred); } static <A, B> LPair<A, B> filterPairB(Iterable<Pair<A, B>> c, IPred<B> pred) { new LPair<A, B> x; if (c != null) for (Pair<A, B> p : c) if (p != null && pred.get(p.b)) x.add(p); ret x; }
Began life as a copy of #1003524
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023844 |
Snippet name: | filterPairB - filter pairs according to predicate on b |
Eternal ID of this version: | #1023844/6 |
Text MD5: | d5b57443ac89aa88cd2567533a747c2d |
Transpilation MD5: | a8b831b2e85cb8bd2b36557691d5cf7e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-02-13 19:13:27 |
Source code size: | 322 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 235 / 337 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1026685 - filterPairA - filter pairs according to predicate on a #1030090 - pairsAWhereB - return a of pairs according to predicate on b |