mirror of
https://github.com/Smaug123/WoofWare.Myriad
synced 2025-10-06 04:28:42 +00:00
Absolute bare-bones support for generics in cata (#101)
This commit is contained in:
@@ -50,19 +50,3 @@ type Gift =
|
||||
| Wrapped of Gift * WrappingPaperStyle
|
||||
| Boxed of Gift
|
||||
| WithACard of Gift * message : string
|
||||
|
||||
[<CreateCatamorphism "MyListCata">]
|
||||
type MyList =
|
||||
| Nil
|
||||
| Cons of ConsCase
|
||||
|
||||
and ConsCase =
|
||||
{
|
||||
Head : int
|
||||
Tail : MyList
|
||||
}
|
||||
|
||||
[<CreateCatamorphism "MyList2Cata">]
|
||||
type MyList2 =
|
||||
| Nil
|
||||
| Cons of int * MyList2
|
||||
|
Reference in New Issue
Block a user