
in the original GitHub fork: https://github.com/ntoronto/racket Some things about this are known to be broken (most egregious is that the array tests DO NOT RUN because of a problem in typed/rackunit), about half has no coverage in the tests, and half has no documentation. Fixes and docs are coming. This is committed now to allow others to find errors and inconsistency in the things that appear to be working, and to give the author a (rather incomplete) sense of closure.
8 lines
232 B
Racket
8 lines
232 B
Racket
#lang typed/racket
|
|
|
|
(provide raise-length-error)
|
|
|
|
(: raise-length-error (Symbol String Any Index -> Nothing))
|
|
(define (raise-length-error name type-name xs n)
|
|
(raise-argument-error name (format "~a of length ~a" type-name n) xs))
|