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

7
LINES

< > BotCompany Repo | #1028645 // parseFirstIntOrMinus1 - parse first int in string (or return -1)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3044L/19K).

static int parseFirstIntOrMinus1(String s) {
  return parseIntOrMinus1(jextract("<int>", s));
}

static int parseFirstIntOrMinus1(Iterable<S> l) {
  ret parseIntOrMinus1(firstIntegerString(l));
}

Author comment

Began life as a copy of #1004323

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: #1028645
Snippet name: parseFirstIntOrMinus1 - parse first int in string (or return -1)
Eternal ID of this version: #1028645/1
Text MD5: b70b76ed7987cbe4d8fb178545b7202c
Transpilation MD5: ea21be37a3d2dabcccf1c940d4981326
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-01 12:00:01
Source code size: 201 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 112 / 173
Referenced in: [show references]