Libraryless. Click here for Pure Java version (46L/1K).
1 | static Steppable iteratorToSteppable(Iterator it) { |
2 | ret it == null ? null : new Steppable { |
3 | public bool step() { |
4 | if (!it.hasNext()) false; |
5 | it.next(); |
6 | true; |
7 | } |
8 | }; |
9 | } |
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: | 229 / 337 |
Version history: | 2 change(s) |
Referenced in: | [show references] |