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

5
LINES

< > BotCompany Repo | #1018331 // tempAddToList_exclusive - temporarily add to list that only we work on

JavaX fragment (include)

static <A> AutoCloseable tempAddToList_exclusive(final L<A> l, final A a) {
  if (l == null) null;
  l.add(a);
  ret autocloseable { removeLast(l); };
}

Author comment

Began life as a copy of #1017722

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018331
Snippet name: tempAddToList_exclusive - temporarily add to list that only we work on
Eternal ID of this version: #1018331/1
Text MD5: 4584a047ecd5c895c1a63689293c0dba
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-19 21:18:18
Source code size: 156 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 387 / 387
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)