On Sun, Dec 11, 2011 at 3:39 PM, Harry Spier wrote:
> In the Racket Reference it gives this example for match-let .
>
> match-let ([(list a b) '(1 2)]
> [(vector x ...) #(1 2 3 4)])
> (list b a x))
>
>
> '(2 1 (1 2 3 4))
>
> I'm not clear why the result isn't '(2 1 #(1 2 3 4))
`x
In the Racket Reference it gives this example for match-let .
match-let ([(list a b) '(1 2)]
[(vector x ...) #(1 2 3 4)])
(list b a x))
'(2 1 (1 2 3 4))
I'm not clear why the result isn't '(2 1 #(1 2 3 4))
If someone could explain that I'd greatly appreciate it.
Thanks,
Harry
2 matches
Mail list logo