I'm trying to run a program in racket using #lang plai-typed, but I keep getting the 'unbound identifier' errors
(define (get-fundef [n : symbol] [fds : (vector FunDefC)]) : FunDefC
(cond [(empty? fds)
(error 'get-fundef "reference to undefined function")]
[(vector? fds)
(cond [(equal? n (fdC-name (vector-ref fds 0))) (vector-ref fds 0)]
[else (get-fundef n (vector-drop fds 1))])]))
When I run the same with 'listof' instead of 'vector' as input, adjusted to the list type, it works. With vectors I get:
'unbound identifier in module in: vector?'
Help?