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

6
LINES

< > BotCompany Repo | #1018124 // shortestString

JavaX fragment (include)

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

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