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

6
LINES

< > BotCompany Repo | #1018930 // intSumAsLong

JavaX fragment (include)

static long intSumAsLong(Iterable<Int> l) {
  long sum = 0;
  for (Int i : unnull(l))
    if (i != null) sum += i;
  ret sum;
}

Author comment

Began life as a copy of #1006064

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018930
Snippet name: intSumAsLong
Eternal ID of this version: #1018930/1
Text MD5: a1a42f60c08f604089bb31a94c022bea
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-16 01:34:25
Source code size: 132 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 379 / 400
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1019290 - intSumAsLong_positiveOnly
#1024344 - longSum