Libraryless. Click here for Pure Java version (7948L/45K).
1 | static <A> Pair<A, Double> pairWithLowestB(Iterable<Pair<A, Double>> l) { |
2 | new Lowest<Pair<A, Double>> lowest; |
3 | fOr (p : l) |
4 | lowest.put(p, p.b); |
5 | ret lowest!; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035273 |
Snippet name: | pairWithLowestB |
Eternal ID of this version: | #1035273/2 |
Text MD5: | 861882e7460195b7ba3bd48e574c7f65 |
Transpilation MD5: | 199665cf5c0bc751df7e8065251b1e47 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-28 20:10:45 |
Source code size: | 171 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 137 / 197 |
Version history: | 1 change(s) |
Referenced in: | [show references] |