1 | static void removeInstances(L l, Class c) { |
2 | if (l == null || c == null) ret; |
3 | for i over l: |
4 | if (isInstanceX(c, l.get(i))) l.remove(i--); |
5 | } |
6 | |
7 | static void removeInstances(L l, S className) { |
8 | removeInstances(l, getClassNamed(className)); |
9 | } |
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: | #1008775 |
Snippet name: | removeInstances - remove all instances of a class from list |
Eternal ID of this version: | #1008775/2 |
Text MD5: | 0edae5d5e1ac27a417aa1f426527cab9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-03 03:03:47 |
Source code size: | 252 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 450 / 497 |
Version history: | 1 change(s) |
Referenced in: | [show references] |