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

5
LINES

< > BotCompany Repo | #1007607 // removeDyn - remove from list and return null if empty

JavaX fragment (include)

static <A> L<A> removeDyn(L<A> l, A a) {
  if (l == null) null;
  l.remove(a);
  ret empty(l) ? null : l;
}

Author comment

Began life as a copy of #1007606

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: #1007607
Snippet name: removeDyn - remove from list and return null if empty
Eternal ID of this version: #1007607/1
Text MD5: d5faa6ade1bd8f7b6fd68e01d2121dc3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-28 03:22:15
Source code size: 111 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 494 / 528
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1029656 - removeDyn_quickSync - remove from list and return null if empty, synchronize on list