by uryga · 7y ago · 0 comments
could you expand on this? i don't understand how you get this from grammars.
(on a side note, i think that dependent types usually mean you can write functions from values to types, not type -> type?)
InfiniteListOf = Type ->
Type & InfiniteListOf Type
That function just morphs a simple grammar into another grammar. Imagine now if we could calculate something in between: IncrementingInfiniteListFrom = number ->
number & IncrementingInfiniteListFrom number+1
That's where the dependent types come in, naturally.