vector.scm 315 B

1234567891011
  1. (define-module (utils vector))
  2. (use-modules
  3. ;; SRFI-43 for additional vector operations
  4. (srfi srfi-43))
  5. (define-public vector-take-except-ref
  6. (lambda (vec not-taken-index)
  7. (vector-append (vector-copy vec 0 not-taken-index)
  8. (vector-copy vec (+ not-taken-index 1) (vector-length vec)))))