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

3
LINES

< > BotCompany Repo | #1027214 // nextFromIterator - null if ended

JavaX fragment (include)

static <A> A nextFromIterator(Iterator<A> it) {
  ret it == null || !it.hasNext() ? null : it.next();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027214
Snippet name: nextFromIterator - null if ended
Eternal ID of this version: #1027214/1
Text MD5: cf154b52969bed7b645dd99f6f044158
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-26 12:22:10
Source code size: 105 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 141 / 189
Referenced in: [show references]