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

7
LINES

< > BotCompany Repo | #1035778 // shortenToMaxLines - actually uses one more line for the ...

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

Transpiled version (9696L) is out of date.

sS shortenToMaxLines(S s, int maxLines) {
  ret shortenToMaxLinesAndChars(s, maxLines, Int.MAX_VALUE);
}

sS shortenToMaxLines(int maxLines, S s) {
  ret shortenToMaxLines(s, maxLines);
}

Author comment

Began life as a copy of #1018064

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035778
Snippet name: shortenToMaxLines - actually uses one more line for the ...
Eternal ID of this version: #1035778/2
Text MD5: f90c46888fa67e1acf2730a1c44738ec
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-23 23:45:19
Source code size: 189 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 58 / 82
Version history: 1 change(s)
Referenced in: [show references]