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).

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

download  show line numbers  debug dex   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz, 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: 5 / 16
Referenced in: [show references]

Formerly at http://tinybrain.de/1028979 & http://1028979.tinybrain.de