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

8
LINES

< > BotCompany Repo | #1029296 // collectionToIntegerIterator

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (39L/1K).

static IntegerIterator collectionToIntegerIterator(Cl<Int> l) {
  if (l == null) null;
  Iterator<Int> it = l.iterator();
  ret new IntegerIterator {
    public bool hasNext() { ret it.hasNext(); }
    public int next() { ret it.next(); }
  };
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029296
Snippet name: collectionToIntegerIterator
Eternal ID of this version: #1029296/1
Text MD5: 58204ee61fd3258cb1b66674fc64069f
Transpilation MD5: c02ccb48129032fe4c2efd7d9da256dc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-30 01:20:17
Source code size: 254 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 291 / 400
Referenced in: [show references]