Vincent VD
Vincent VD

Reputation: 51

How to create a vector of vectors in Scheme?

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

Answers (1)

Óscar López
Óscar López

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

Related Questions