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

11
LINES

< > BotCompany Repo | #1020794 // pcallFAll_returnFirstNotNull

JavaX fragment (include)

sO pcallFAll_returnFirstNotNull(Collection l, O... args) {
  if (l != null) for (O f : cloneList(l))
    try object pcallF(f, args);
  null;
}

sO pcallFAll_returnFirstNotNull(Iterator it, O... args) {
  while (it.hasNext())
    try object pcallF(it.next(), args);
  null;
}

Author comment

Began life as a copy of #1011395

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1020794
Snippet name: pcallFAll_returnFirstNotNull
Eternal ID of this version: #1020794/4
Text MD5: 1c4ff636aef8198e0248a94b5886b949
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-03 02:10:15
Source code size: 284 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 203 / 265
Version history: 3 change(s)
Referenced in: [show references]