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

4
LINES

< > BotCompany Repo | #1026929 // firstNonNegativeDouble_orMinus1

JavaX fragment (include)

static double firstNonNegativeDouble_orMinus1(double... l) {
  for (double d : l) if (d >= 0) ret d;
  ret -1;
}

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: #1026929
Snippet name: firstNonNegativeDouble_orMinus1
Eternal ID of this version: #1026929/1
Text MD5: 70e95cda9582bc7c34b0ba4fb283a6ab
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-02 21:12:37
Source code size: 115 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 205 / 224
Referenced in: [show references]