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

6
LINES

< > BotCompany Repo | #1018124 // shortestString

JavaX fragment (include)

static S shortestString(Iterable<S> l) {
  new Lowest<S> best;
  for (S s : unnull(l))
    best.put(s, l(s));
  ret best!;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018124
Snippet name: shortestString
Eternal ID of this version: #1018124/1
Text MD5: 4983045c195b70cdc2511e5967a1ea0f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-02 14:50:59
Source code size: 129 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 251 / 287
Referenced in: [show references]