static L mapMethod(O[] l, fS methodName) { ret map(l, func(O o) { callOpt(o, methodName) }); } static L mapMethod(Iterable c, fS methodName) { ret map(c, func(O o) { callOpt(o, methodName) }); } static L mapMethod(S methodName, Iterable c) { ret mapMethod(c, methodName); } static L mapMethod(S methodName, Enumeration c) { ret mapMethod(methodName, enumerationToIterator(c)); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006772 |
Snippet name: | mapMethod - call same method on each object |
Eternal ID of this version: | #1006772/6 |
Text MD5: | e8b0844e032b96e14cfcc53a2761f7f8 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-03 00:32:40 |
Source code size: | 403 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 537 / 585 |
Version history: | 5 change(s) |
Referenced in: | [show references] |