Next: printf - format to stdout, Previous: min - minimum value in list, Up: Common Scheme Functions [Contents][Index]
Usage: (prefix prefix text)
Prefix every line in the second string with the first string.
This includes empty lines. Trailing white space will be removed
so if the prefix is all horizontal white space, then it will be
removed from otherwise blank lines. Also, if the last character
is a newline, then *two* prefixes will be inserted into the result
text.
For example, if the first string is "# " and the second contains:
"two\nlines\n"
The result string will contain:
# two # lines #
The last line will be incomplete: no newline and no space after the hash character, either.
Arguments:
prefix - string to insert at start of each line
text - multi-line block of text