Libraryless. Click here for Pure Java version (2124L/14K).
1 | static <A> Scored<A> betterScored(Scored<A> a, Scored<A> b) { |
2 | ret a == null ? b : b == null ? a : a.score >= b.score ? a : b; |
3 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024986 |
Snippet name: | betterScored |
Eternal ID of this version: | #1024986/2 |
Text MD5: | bacbb8cfd75c45031ae9357658efd44b |
Transpilation MD5: | 7cbccc7845a642fee9b39842a6cd4786 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-31 23:11:45 |
Source code size: | 131 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 248 / 351 |
Version history: | 1 change(s) |
Referenced in: | [show references] |