vector-equal?   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/init.xtm

Implementation

(define (vector-equal? x y)
  (and (vector? x) (vector? y) (= (vector-length x) (vector-length y))
       (let ((n (vector-length x)))
         (let loop ((i 0))
           (if (= i n)
               #t
               (and (equal? (vector-ref x i) (vector-ref y i))
                    (loop (succ i))))))))


Back to Index