Libraryless. Click here for Pure Java version (39L/1K).
1 | static IntegerIterator collectionToIntegerIterator(Cl<Int> l) {
|
2 | if (l == null) null; |
3 | Iterator<Int> it = l.iterator(); |
4 | ret new IntegerIterator {
|
5 | public bool hasNext() { ret it.hasNext(); }
|
6 | public int next() { ret it.next(); }
|
7 | }; |
8 | } |
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: | #1029296 |
| Snippet name: | collectionToIntegerIterator |
| Eternal ID of this version: | #1029296/1 |
| Text MD5: | 58204ee61fd3258cb1b66674fc64069f |
| Transpilation MD5: | c02ccb48129032fe4c2efd7d9da256dc |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-30 01:20:17 |
| Source code size: | 254 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 546 / 715 |
| Referenced in: | [show references] |