chickadee » callable-data-structures » make-callable-list

make-callable-list #!rest itemsprocedure

Return a callable list object. It accepts an arbitrary number if items.

Example:

#;1> (use callable-lists)
#;2> (define l (make-callable-list "foo" "bar" "baz"))
#;3> l
#<procedure callable-list>
#;4> (l)
("foo" "bar" "baz")
#;5> (l 2)
"baz"
#;6> (set! (l 1) "quux")
#;7> (l)
("foo" "quux" "baz")