Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1028201 // peekNext

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (31L/1K).

static <A> A peekNext(ListIterator<A> it) {
  if (!it.hasNext()) null;
  A a = it.next();
  it.previous();
  ret a;
}

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: 94 / 147
Version history: 1 change(s)
Referenced in: [show references]