chickadee » callable-data-structures » make-callable-string

make-callable-string #!rest charsprocedure

Return a callable string object. It accepts an arbitrary number of characters.

Example:

#;1> (use callable-strings)
#;2> (define s (make-callable-string #\f #\o #\o))
#;3> s
#<procedure callable-string>
#;4> (s)
"foo"
#;5> (s 1)
#\o
#;6> (set! (s 0) #\d)
#;7> (s)
"doo"