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

5
LINES

< > BotCompany Repo | #1014138 // nullIfInSet_verbose

JavaX fragment (include)

static <A> A nullIfInSet_verbose(Set<A> set, A a) {
  bool b = contains(set, a);
  print(b + ": " + sfu(a) + " in set " + shorten(sfu(set), 80));
  ret b ? null : a;
}

Author comment

Began life as a copy of #1014137

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014138
Snippet name: nullIfInSet_verbose
Eternal ID of this version: #1014138/1
Text MD5: 0968ebdf4103edc4cc56dd260cbf8c6a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-11 05:43:46
Source code size: 171 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 310 / 352
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)