lib-colon2.scm 423 B

12345678910111213141516171819
  1. (define-library (testlib)
  2. (export ec-:vector-filter)
  3. (import (scheme base))
  4. (begin
  5. (define (ec-:vector-filter vecs)
  6. (if (null? vecs)
  7. '()
  8. (if (zero? (vector-length (car vecs)))
  9. (ec-:vector-filter (cdr vecs))
  10. (cons (car vecs) (ec-:vector-filter (cdr vecs))))))))
  11. (import (scheme base)
  12. (scheme write)
  13. (testlib))
  14. (display "ok\n")
  15. ;; Output: ok