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).

static ItIt<Int> countDownIterator_exclusive(int a, int b) {
  ret new ItIt<Int> {
    int i = a;
    
    public bool hasNext() { ret i > b; }
    public Int next() { ret i--; }
  };
}

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