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

7
LINES

< > BotCompany Repo | #1019205 // indexOfSmallestFloat

JavaX fragment (include)

static int indexOfSmallestFloat(float[] l) {
  new Lowest<Int> best;
  int n = l(l);
  for i to n:
    best.put(i, l[i]);
  ret or(best!, -1);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019205
Snippet name: indexOfSmallestFloat
Eternal ID of this version: #1019205/3
Text MD5: 4a4112061b4ce82adf2abecf3ce36838
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-27 17:04:28
Source code size: 150 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 262 / 296
Version history: 2 change(s)
Referenced in: [show references]