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

6
LINES

< > BotCompany Repo | #1028979 // smallestCollection

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

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

1  
static <A, B extends Cl<A>> B smallestCollection(Iterable<B> l) {
2  
  new Lowest<B> best;
3  
  fOr (B b : l)
4  
    best.put(b, l(b));
5  
  ret best!;
6  
}

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: #1028979
Snippet name: smallestCollection
Eternal ID of this version: #1028979/1
Text MD5: f3b0ccb471751a888cc4a87565aff860
Transpilation MD5: 9e3390e7b51c34dad5728ef92dfa3a55
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-15 02:12:09
Source code size: 146 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 211 / 284
Referenced in: [show references]