Re:Dependent Types for F#
by lkitching on Tuesday December 05, 2017 @12:56PM
(#15853826)
I'm not asking specifically about vectors, that's just a common example of a dependent type. To take another example from the documentation, can you express a type like
where all values of type digits are strings containing only digits? Then
would typecheck but
would not? That would be very surprising given the F# type system.
[ Parent
| on HN ]
There are no comments on this comment yet.