Libraryless. Click here for Pure Java version (3775L/22K).
1 | static <A> void remove(L<A> l, int i) { |
2 | if (l != null && i >= 0 && i < l(l)) |
3 | l.remove(i); |
4 | } |
5 | |
6 | static <A> void remove(Collection<A> l, A a) { |
7 | if (l != null) l.remove(a); |
8 | } |
9 | |
10 | static <A, B> B remove(Map<A, B> map, O a) { |
11 | ret map == null ?: map.remove(a); |
12 | } |
13 | |
14 | svoid remove(BitSet bs, int i) { |
15 | bs.clear(i); |
16 | } |
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: | #1007500 |
Snippet name: | remove - remove element from list/collection |
Eternal ID of this version: | #1007500/7 |
Text MD5: | 01b96ebec493f7b75f8b9f6b5fe68eeb |
Transpilation MD5: | d5da0b7e5c1f071d714da69192924d03 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-15 21:07:09 |
Source code size: | 327 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 753 / 928 |
Version history: | 6 change(s) |
Referenced in: | [show references] |