1 | static <A> L<A> takeIndices(L<A> l, int... indices) {
|
2 | new L<A> x; |
3 | for (int i : indices) |
4 | x.add(get(l, i)); |
5 | ret x; |
6 | } |
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: | #1007104 |
| Snippet name: | takeIndices |
| Eternal ID of this version: | #1007104/1 |
| Text MD5: | 4b84bd5c04d0da64261d9691ed839bce |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-03-03 01:38:25 |
| Source code size: | 131 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 677 / 691 |
| Referenced in: | [show references] |