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

7
LINES

< > BotCompany Repo | #1029311 // intArrayIterator

JavaX fragment (include)

static ItIt<Int> intArrayIterator(int[] l) {
  ret l == null ? null : new ItIt<Int> {
    int i = 0;
    public bool hasNext() { ret i < l.length; }
    public Int next() { ret l[i++]; }
  };
}

Author comment

Began life as a copy of #1029302

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: #1029311
Snippet name: intArrayIterator
Eternal ID of this version: #1029311/1
Text MD5: 9fca0918d9c0b74e8783be28ad0a923e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-30 18:20:15
Source code size: 199 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 97 / 125
Referenced in: [show references]