Libraryless. Click here for Pure Java version (37L/1K).
1 | static IntegerIterator integerIterator(int[] l) {
|
2 | ret l == null ? null : new IntegerIterator {
|
3 | int i = 0; |
4 | public bool hasNext() { ret i < l.length; }
|
5 | public int next() { ret l[i++]; }
|
6 | }; |
7 | } |
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: | #1029302 |
| Snippet name: | integerIterator |
| Eternal ID of this version: | #1029302/2 |
| Text MD5: | f67d30a41000df1f446faeb3a060044d |
| Transpilation MD5: | 7906190b8283ce3ee35631549d4955fa |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-30 13:20:17 |
| Source code size: | 210 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 820 / 1019 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |