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)

static ItIt<Int> intIterator(final int a, final int b) {
  ret iff(new F0<Int> {
    int i = a;
    
    public Int get() {
      if (i >= b) null;
      ret i++;
    }
  });
}

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: 275 / 314
Referenced in: [show references]