static <A, B, C> L<Pair<C, B>> mapPairA(fO f, Iterable<Pair<A, B>> l) { ret map(l, func(Pair<A, B> p) -> Pair<C, B> { p == null ? null : pair((C) callF(f, p.a), p.b) }); } static <A, B, C> LPair<C, B> mapPairA(final F1<A, C> f, Iterable<Pair<A, B>> l) { ret mapPairA((O) f, l); } static <A, B, C> LPair<C, B> mapPairA(final IF1<A, C> f, Iterable<Pair<A, B>> l) { ret mapPairA((O) f, l); }
Began life as a copy of #1016965
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017306 |
Snippet name: | mapPairA - apply function to first element of each pair |
Eternal ID of this version: | #1017306/2 |
Text MD5: | c22c10622592dcc869680b90dda64799 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-10 12:48:28 |
Source code size: | 414 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 381 / 419 |
Version history: | 1 change(s) |
Referenced in: | [show references] |