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

8
LINES

< > BotCompany Repo | #1007500 - remove - remove element from list/collection

JavaX fragment (include)

static <A> void remove(L<A> l, int i) {
  if (l != null && i >= 0 && i < l(l))
    l.remove(i);
}

static <A> void remove(Collection<A> l, A a) {
  if (l != null) l.remove(a);
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1007500
Snippet name: remove - remove element from list/collection
Eternal ID of this version: #1007500/3
Text MD5: 81ed0d440855a6f13198f2fdad971bc8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-03 18:29:35
Source code size: 184 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 278 / 308
Version history: 2 change(s)
Referenced in: [show references]