How might I define datatypes that take a type parameter, like Option? Would like to be able to define Option like this, but currently can't: ``` racket (define-datatype (Opt a) [Some (a)] [None ()]) ``` Thoughts?
How might I define datatypes that take a type parameter, like Option?
Would like to be able to define Option like this, but currently can't:
Thoughts?