Libraryless. Click here for Pure Java version (2626L/17K).
1 | sS lowestByAlphaNum(Cl<S> c) { |
2 | S best = null; |
3 | fOr (S s : c) |
4 | if (best == null || alphaNumComparator().compare(s, best) < 0) |
5 | best = s; |
6 | ret best; |
7 | } |
Began life as a copy of #1026700
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029572 |
Snippet name: | lowestByAlphaNum |
Eternal ID of this version: | #1029572/1 |
Text MD5: | 5e6748771525a22be2a618ab8840d428 |
Transpilation MD5: | e88f243ad3b98afa123c3b638adac4e2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-24 12:37:37 |
Source code size: | 168 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 168 / 238 |
Referenced in: | [show references] |