Libraryless. Click here for Pure Java version (46L/1K).
static Steppable iteratorToSteppable(Iterator it) { ret it == null ? null : new Steppable { public bool step() { if (!it.hasNext()) false; it.next(); true; } }; }
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: | #1027230 |
Snippet name: | iteratorToSteppable |
Eternal ID of this version: | #1027230/3 |
Text MD5: | 46758178c924218ac6ba01145aa837d8 |
Transpilation MD5: | 9d0f796ad0bfba35164d3c30ad272f83 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-26 14:39:03 |
Source code size: | 200 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 228 / 336 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |