Sometimes when I say types are first class in Idris, someone (quite reasonably) points out you can't pattern match on them. Well, here we go...https://gist.github.com/edwinb/25cd0449aab932bdf49456d426960fed …
Yes, it's Quantitative Type Theory, binders have quantities, either 0, 1 or many. So it wasn't even that tricky to add, just a bit fiddly for run time.
-
-
Hmm sounds like you could use Kleene star syntax for quantity in pattern definition
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.