Re:Dependent Haskell Is the Future (2018)
by Legogris on Friday August 16, 2019 @08:08AM
(#20714287)
Yes. Just like with generics, you can parametrize them, for example in Idris you have the type `Vect n a`, being a list of type `a` with length `n`. An append function could look like this:
Source: https://www.idris-lang.org/example/
[ Parent
| on HN ]
There are no comments on this comment yet.