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

5
LINES

< > BotCompany Repo | #1019727 // iteratorCount

JavaX fragment (include)

static <A> long iteratorCount(Iterator<A> i) {
  long n = 0;
  if (i != null) while (i.hasNext()) { i.next(); ++n; }
  ret n;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1019727
Snippet name: iteratorCount
Eternal ID of this version: #1019727/2
Text MD5: 1f0258da27575e6bf7157ee5dc84eab5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-21 16:42:37
Source code size: 131 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 319 / 360
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024442 - iteratorCount_int