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

3
LINES

< > BotCompany Repo | #1029264 // firstOrMinus1

JavaX fragment (include)

static int firstOrMinus1(L<Int> l) {
  ret or(first(l), -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: #1029264
Snippet name: firstOrMinus1
Eternal ID of this version: #1029264/1
Text MD5: a075ff993943509089471fac5ebf0b35
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-27 19:34:29
Source code size: 64 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 200 / 224
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)