Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1029572 // lowestByAlphaNum

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2626L/17K).

sS lowestByAlphaNum(Cl<S> c) {
  S best = null;
  fOr (S s : c)
    if (best == null || alphaNumComparator().compare(s, best) < 0)
      best = s;
  ret best;
}

Author comment

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: 166 / 236
Referenced in: [show references]