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

8
LINES

< > BotCompany Repo | #1028151 // countDownIterator_exclusive - count from a down to b (exclusively)

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

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

1  
static ItIt<Int> countDownIterator_exclusive(int a, int b) {
2  
  ret new ItIt<Int> {
3  
    int i = a;
4  
    
5  
    public bool hasNext() { ret i > b; }
6  
    public Int next() { ret i--; }
7  
  };
8  
}

Author comment

Began life as a copy of #1018110

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: #1028151
Snippet name: countDownIterator_exclusive - count from a down to b (exclusively)
Eternal ID of this version: #1028151/1
Text MD5: baa7ec493a07acb14361bdf1fd119e74
Transpilation MD5: edc441230e7674e24129a8d649b440e5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-23 17:01:03
Source code size: 192 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 217 / 308
Referenced in: [show references]