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

4
LINES

< > BotCompany Repo | #1008163 // getLinesCountingFrom1 - return a line range

JavaX fragment (include)

// line2 = inclusive
static L<S> getLinesCountingFrom1(S text, int line1, int line2) {
  ret cloneSubList(toLines(text), line1-1, line2);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008163
Snippet name: getLinesCountingFrom1 - return a line range
Eternal ID of this version: #1008163/2
Text MD5: 01b5b91d7616fe66e77bf62508d3a704
Author: stefan
Category: javax / text
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-29 16:27:17
Source code size: 142 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 459 / 485
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008165 - str_getLinesCountingFrom1 - return a line range as string