Go to the first, previous, next, last section, table of contents.


getLineFromString

Function: getLineFromString { string n -> string }
file: job.t
package: muf
status: alpha

The getLineFromString function is a trivial convenience function returning the nth line from a string, defined as the text after the nth newline but preceding the n+1th newline (if any) but including neither:

stack:
"abc\ndef" 0 getLineFromString
stack: "abc"
pop "abc\ndef\n" 1 getLineFromString
stack: "def"

See section countLinesInString.


Go to the first, previous, next, last section, table of contents.