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

9
LINES

< > BotCompany Repo | #1006350 // collectMinInt - get smallest value of int field from objects

JavaX fragment (include)

static Int collectMinInt(L l, S field) {
  Int min = null;
  for (O x : l) {
    O o = getOpt(x, field);
    if (o instanceof Number)
      min = xmin(min, toInt(o));
  }
  ret min;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006350
Snippet name: collectMinInt - get smallest value of int field from objects
Eternal ID of this version: #1006350/2
Text MD5: 47e5a619fc0218a971348b7201bbc856
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-03 00:28:00
Source code size: 191 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 565 / 593
Version history: 1 change(s)
Referenced in: [show references]