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)

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

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: 596 / 651
Referenced in: [show references]