I'm new to Racket and I was hoping to get more insights in the these two operators: ,
& ,@
.
There's very little documentation of these new operators, however, to my understanding the former (,
) unquotes everything if its is followed by a list. And the latter (,@
) splices the values.
For example if the following is typed in the Dr. Racket interpreter:
(define scores '(1 3 2))
(define pets '(dog cat))
and then the following query is made:
`(,scores ,@pets)
this would yield : '((1 3 2) dog cat)
It would be appreciated if I could get more details, definitions and more examples about these operators. Thanks in advance.