Libraryless. Click here for Pure Java version (4653L/26K).
// f must return a list static L concatMap(O f, Iterable l) { ret concatLists(map(f, l)); } static L concatMap(Iterable l, O f) { ret concatMap(f, l); } static L concatMap(O f, O[] l) { ret concatLists(map(f, l)); } static L concatMap(O[] l, O f) { ret concatMap(f, l); } static <A, B, C extends Iterable<B>> L<B> concatMap(Iterable<A> l, IF1<A, C> f) { ret concatMap(l, (O) f); } static <A, B, C extends Iterable<B>> L<B> lambdaMapLike concatMap(IF1<A, C> f, Iterable<A> l) { ret concatMap(l, f); } static <A, B, C extends Iterable<B>> L<B> lambdaMapLike concatMap(IF1<A, C> f, A[] l) { ret concatMap((O) f, l); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1005492 |
| Snippet name: | concatMap - map, then concat lists |
| Eternal ID of this version: | #1005492/9 |
| Text MD5: | abe4a1216524fd3cf0aca9e2442580b9 |
| Transpilation MD5: | 70e769e337a0f1215a0af1fd138f4418 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-11-14 23:02:32 |
| Source code size: | 661 bytes / 28 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 997 / 1119 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |