Next: , Previous: , Up: expander utils   [Index]


15.4.6 Vectors processing

Function: syntax->vector stx
Function: syntax->vector stx synner

Expect stx to be a syntax object holding a vector of items; return a proper list holding the individual item syntax objects.

(vector-for-all
    (lambda (obj1 obj2)
      (if (identifier? obj2)
          (bound-identifier=? obj1 obj2)
        (equal? obj1 obj2)))
  (syntax->vector #'#(display 123 write))
  (vector #'display 123 #'write))
⇒ #t