1 | static ItIt<Int> iota_zero(final int n) { |
2 | ret new ItIt<Int>() { |
3 | int i = 0; |
4 | |
5 | public bool hasNext() { ret i < n; } |
6 | public Int next() { ret i++; } |
7 | }; |
8 | } |
Began life as a copy of #1015352
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: | #1027215 |
Snippet name: | iota_zero - count from 0 to n-1 (iterator) |
Eternal ID of this version: | #1027215/1 |
Text MD5: | 41ddd25b8590b3fa6e30f2909c246ef8 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-26 12:27:11 |
Source code size: | 175 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 235 / 274 |
Referenced in: | [show references] |