datatype icon indicating copy to clipboard operation
datatype copied to clipboard

(Somewhat) Algebraic Data Types for Racket

Results 2 datatype issues
Sort by recently updated
recently updated
newest added

Allows `define-datatype` to take type parameters, as discussed in https://github.com/andmkent/datatype/issues/2. e.g. ``` (define-datatype (Optional a) [Some (a)] [None ()]) ``` Note: changes syntax of `define-datatype`; might not be quite ready...

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)...