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

10
LINES

< > BotCompany Repo | #1019750 // intIterator - iterate an int from a through b-1

JavaX fragment (include)

1  
static ItIt<Int> intIterator(final int a, final int b) {
2  
  ret iff(new F0<Int> {
3  
    int i = a;
4  
    
5  
    public Int get() {
6  
      if (i >= b) null;
7  
      ret i++;
8  
    }
9  
  });
10  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019750
Snippet name: intIterator - iterate an int from a through b-1
Eternal ID of this version: #1019750/1
Text MD5: 05ff06a11c5a8f038670e2b5354e389c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-24 17:45:47
Source code size: 185 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 276 / 316
Referenced in: [show references]