Libraryless. Click here for Pure Java version (31L/1K).
1 | static <A> A peekNext(ListIterator<A> it) { |
2 | if (!it.hasNext()) null; |
3 | A a = it.next(); |
4 | it.previous(); |
5 | ret a; |
6 | } |
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: | #1028201 |
Snippet name: | peekNext |
Eternal ID of this version: | #1028201/2 |
Text MD5: | 3cecadbebfe4f061869b324a9671fc3d |
Transpilation MD5: | e1a28d20c8c38eed104b9f1e305a8248 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-26 12:46:53 |
Source code size: | 122 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 166 / 241 |
Version history: | 1 change(s) |
Referenced in: | [show references] |