Reputation: 51
How do you create a vector of vectors in scheme, and how can change the input on a certain event?
I am aware of the existence of SRFI25, which allows you to do just that, but I'm interest to see the implementation, as well as the result.
Upvotes: 0
Views: 277
Reputation: 236004
This will create an immutable vector:
'#(#(1 2 3) #(4 5 6))
And this will create a mutable vector, with the same structure:
(vector (vector 1 2 3) (vector 4 5 6))
Upvotes: 2