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

5
LINES

< > BotCompany Repo | #1020537 // sumL - recursive length of collection

JavaX fragment (include)

static long sumL(Iterable l) {
  long sum = 0;
  for (O o : unnull(l)) sum += l(o);
  ret sum;
}

Author comment

Began life as a copy of #1008788

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020537
Snippet name: sumL - recursive length of collection
Eternal ID of this version: #1020537/1
Text MD5: 483ba8413f3ae5683074754dcdd0c4ac
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-26 00:50:14
Source code size: 100 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 189 / 232
Referenced in: [show references]