|Parameters||n, a non-negative integer|
c, a character
|Purpose||Generates a string that contains n copies of c.|
|Produces||str, a string.|
|Preconditions||One or two parameters (verified).|
n is a non-negative integer (verified).
c is a character (verified).
|Postconditions||The result is a string.|
> (make-string 5 #\a) "aaaaa" > (make-string 0 #\a) "" > (make-string 3 "a" "b") make-string: expects 1 to 2 arguments, given 3: 3 "a" "b"
If the second parameter is not supplied, creates a string of the appropriate length, but filled with null characters (
Disclaimer: I usually create these pages on the fly. This means that they are rarely proofread and may contain bad grammar and incorrect details. It also means that I may update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.
This page was generated by Siteweaver on Thu Feb 22 05:48:06 2001.
This page may be found at
You may validate this page's HTML.
The source was last modified Sun Feb 4 20:56:47 2001.