chickadee » callable-data-structures » make-callable-vector

make-callable-vector #!rest itemsprocedure

Return a callable vector object. It accepts an arbitrary number of items.

Example:

#;1> (use callable-vectors)
#;2> (define v (make-callable-vector 'foo "bar" 42))
#;3> v
#<procedure callable-vector>
#;4> (v)
#(foo "bar" 42)
#;5> (v 1)
"bar"
#;6> (set! (v 1) "quux")
#;7> (v)
#(foo "quux" 42)