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

11
LINES

< > BotCompany Repo | #1017071 // pairsWhereBBiggerThan

JavaX fragment (include)

1  
static <A, B> L<Pair<A, B>> pairsWhereBBiggerThan(Collection<Pair<A, B>> c, O value) {
2  
  new L<Pair<A, B>> l;
3  
  for (Pair<A, B> p : unnull(c))
4  
    if (p != null && cmp(p.b, value) > 0)
5  
      l.add(p);
6  
  ret l;
7  
}
8  
9  
static <A, B> L<Pair<A, B>> pairsWhereBBiggerThan(O value, Collection<Pair<A, B>> c) {
10  
  ret pairsWhereBBiggerThan(c, value);
11  
}

Author comment

Began life as a copy of #1016986

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017071
Snippet name: pairsWhereBBiggerThan
Eternal ID of this version: #1017071/3
Text MD5: 520473abd5215954ef5217222cf5d0ee
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-11 17:31:11
Source code size: 350 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 280 / 296
Version history: 2 change(s)
Referenced in: [show references]