Transpiled version (10090L) is out of date.
1 | static <A, B, C> LPair<A, B> lambdaMapLike pairsSortedByFunctionOnB(IF1<B, C> f, Iterable<Pair<A, B>> c) {
|
2 | LPair<A, B> l = cloneList(c); |
3 | sort(l, (p1, p2) -> stdcompare(f.get(p1.b), f.get(p2.b))); |
4 | ret l; |
5 | } |
6 | |
7 | static <A, B, C> LPair<A, B> pairsSortedByFunctionOnB(Iterable<Pair<A, B>> c, IF1<B, C> f) { |
8 | ret pairsSortedByFunctionOnB(f, c); |
9 | } |
Began life as a copy of #1032236
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1036556 |
| Snippet name: | pairsSortedByFunctionOnB |
| Eternal ID of this version: | #1036556/4 |
| Text MD5: | 0315a43b3fbf784cce32dabd24b072c4 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2023-02-14 12:39:44 |
| Source code size: | 348 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 480 / 611 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |