Libraryless. Click here for Pure Java version (2456L/16K).
static L lambdaMapLike mapValuesToList(O func, Map map) { L out = emptyList(l(map)); for (O key : keys(map)) out.add(callF(func, map.get(key))); ret out; } static <A, B, C> L<C> mapValuesToList(IF1<B, C> f, Map<A, B> map) { ret mapValuesToList((O) f, map); } static <A, B, C> L<C> mapValuesToList(Map<A, B> map, IF1<B, C> f) { ret mapValuesToList(f, map); } static L mapValuesToList(Map map, O func) { ret mapValuesToList(func, map); }
Began life as a copy of #1004652
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1025495 |
Snippet name: | mapValuesToList |
Eternal ID of this version: | #1025495/5 |
Text MD5: | 7823edefe53c0b1b114a2d8ac2c6ab9c |
Transpilation MD5: | 97719b041a4406c2ad51416262755697 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-18 18:42:10 |
Source code size: | 471 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 356 / 458 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |