Lecture overview -- Keyboard shortcut: 'u'  Previous page: List mutators -- Keyboard shortcut: 'p'  Next page: Imperative features in LAML [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Lecture 9 - Page 4 : 6
Functional Programming in Scheme
Imperative programming in Scheme
String mutators

A string can be mutated by the string-set! and the string-fill! procedures

  • The string mutator procedures:

    • (string-set! str k chr) changes character number k in str to chr

    • (string-fill! str chr) changes every character in str to chr

There are similar functions that mutate the elements in vectors