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

4
LINES

< > BotCompany Repo | #1035119 // lengthOfLine - length of line number x

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

Libraryless. Click here for Pure Java version (7842L/44K).

// lineNr counted from 0
static int lengthOfLine(S text, int lineNr) {
  ret l(getFromIterator(linesIterator(text), lineNr));
}

Author comment

Began life as a copy of #1004884

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035119
Snippet name: lengthOfLine - length of line number x
Eternal ID of this version: #1035119/2
Text MD5: 3bbffa57d6931eea5ebbf8b241427cb5
Transpilation MD5: 5885bf67454890ee505ce662ee7bf3b6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-30 16:51:56
Source code size: 130 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 120 / 197
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)