Libraryless. Click here for Pure Java version (3878L/22K).
static ItIt<Short> toIterator(ShortIterator it) { ret it == null ?: new ItIt<Short> { public bool hasNext() { ret it.hasNext(); } public Short next() { ret it.next(); } }; } static CloseableItIt<Short> toIterator(CloseableShortIterator it) { ret it == null ?: new CloseableItIt<Short> { close { pClose(it); } public bool hasNext() { ret it.hasNext(); } public Short next() { ret it.next(); } }; }
Began life as a copy of #1029302
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033025 |
Snippet name: | toIterator |
Eternal ID of this version: | #1033025/6 |
Text MD5: | 9ed65d572d5360f83b2ba853556d9524 |
Transpilation MD5: | ea16ba308034e28adc00073d15c4e6a1 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-11 12:28:29 |
Source code size: | 438 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 157 / 225 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |