1 | static L<S> appendToAll(Collection<S> l, S s) { |
2 | new L<S> out; |
3 | for (S x : unnull(l)) |
4 | out.add(x + s); |
5 | ret out; |
6 | } |
7 | |
8 | static L<S> appendToAll(S s, Collection<S> l) { |
9 | ret appendToAll(l, s); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1010995 |
Snippet name: | appendToAll |
Eternal ID of this version: | #1010995/2 |
Text MD5: | 40a6375b9c42479c3c31e28fbd66e90c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-03 20:06:55 |
Source code size: | 201 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 558 / 606 |
Version history: | 1 change(s) |
Referenced in: | [show references] |