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

3
LINES

< > BotCompany Repo | #1017086 // listsWithLength

JavaX fragment (include)

static <A> LL<A> listsWithLength(final int n, LL<A> l) {
  ret [L<A> x : unnull(l) | l(x) == n];
}

Author comment

Began life as a copy of #1017080

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: #1017086
Snippet name: listsWithLength
Eternal ID of this version: #1017086/1
Text MD5: 1a5c699c9b218ab15125c6271750be7b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-11 22:17:05
Source code size: 100 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 344 / 374
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1017475 - listsWithLengthGreaterThan