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

3
LINES

< > BotCompany Repo | #1030090 // pairsAWhereB - return a of pairs according to predicate on b

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

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

static <A, B> L<A> pairsAWhereB(Iterable<Pair<A, B>> c, IPred<B> pred) {
  ret pairsA(filter(c, p -> pred.get(p.b)));
}

Author comment

Began life as a copy of #1023844

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030090
Snippet name: pairsAWhereB - return a of pairs according to predicate on b
Eternal ID of this version: #1030090/3
Text MD5: 580f2aa9ad42f43312a19f3416567a62
Transpilation MD5: ac1d553c6ca51168dd57c6f8cc9b524b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-08 15:16:07
Source code size: 121 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 203
Version history: 2 change(s)
Referenced in: [show references]