Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The syntax is a bit peculiar, but they defined the union type Nat, defined the function + which takes two Nats and returns a Nat (which they defined in a thoroughly confusing point-free way because the language is concatenative), and demonstrated the associativity of +.

If you read any introduction to dependent types, they will do this.



Ok, now I get it... I was just lost in the syntax.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: