Next: Rev4 Optional Procedures, Previous: Transcripts, Up: Standards Support [Contents][Index]
The procedures below were specified in the Revised^2 Report on
Scheme. N.B.: The symbols
-1+ are not
R4RS syntax. Scheme->C, for instance, chokes on this
string1 and string2 must be a strings, and start1, start2 and end1 must be exact integers satisfying
0 <= start1 <= end1 <= (string-length string1) 0 <= start2 <= end1 - start1 + start2 <= (string-length string2)
characters of string1 beginning with index start1
(inclusive) and ending with index end1 (exclusive) into
string2 beginning with index start2 (inclusive).
substring-move-left! stores characters in time order of
substring-move-right! stores characters in
time order of increasing indeces.
Fills the elements start–end of string with the character char.
(= 0 (string-length str))
Destructively appends its arguments. Equivalent to
Adds 1 to n.
Subtracts 1 from n.
These are equivalent to the procedures of the same name but without the trailing ‘?’.