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

7
LINES

< > BotCompany Repo | #1021395 // pairsWhereLengthOfABiggerThan

JavaX fragment (include)

static <A, B, C extends Collection<A>> LPair<C, B> pairsWhereLengthOfABiggerThan(Collection<Pair<C, B>> c, int n) {
  new LPair<C, B> l;
  for (Pair<C, B> p : unnull(c))
    if (p != null && l(p.a) > n)
      l.add(p);
  ret l;
}

Author comment

Began life as a copy of #1017071

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021395
Snippet name: pairsWhereLengthOfABiggerThan
Eternal ID of this version: #1021395/4
Text MD5: 1472a896a66726b3baef30791de93a09
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 17:54:16
Source code size: 235 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 238 / 283
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)