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

5
LINES

< > BotCompany Repo | #1008788 // lengthLevel2 - recursive length of collection of collections

JavaX fragment (include)

static <A> int lengthLevel2(Collection<? extends Collection> l) {
  int sum = 0;
  for (Collection c : l) sum += l(c);
  ret sum;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008788
Snippet name: lengthLevel2 - recursive length of collection of collections
Eternal ID of this version: #1008788/1
Text MD5: e5135bbda1f6cbeead907aff6cd736da
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-06 08:57:38
Source code size: 135 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 597 / 651
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1018607 - lengthLevel2_shortArrays
#1020537 - sumL - recursive length of collection
#1022359 - lengthLevel2_maps - recursive length of collection of maps
#1025101 - lengthLevel2_gen - second-level length of collection of things
#1029732 - syncLengthLevel2 - recursive length of collection of collections