Hello,

I'm trying to use occurrence typing for (Vectorof Symbol) or (Boxof Symbol).

Creating a custom predicate for (Listof Symbol) seems to work:
---
#lang typed/racket

(: los? (-> Any Boolean : (Listof Symbol)))
(define los?
  (lambda (seq) (and (list? seq) (andmap symbol? seq))))
---

However I haven't been able to create one for vectors or boxes. None of the 
things I've tried will typecheck. Any pointers?

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/4dc451fd-da2c-4a3c-8bb6-222e6b3b972b%40googlegroups.com.

Reply via email to