Hacker News new | past | comments | ask | show | jobs | submit login

Haskell is a good start. But it's type system can't even express sets.



HList? http://hackage.haskell.org/package/HList

http://hackage.haskell.org/packages/archive/HList/0.2.3/doc/... checks for element occurencies. Records has HasLabel predicate. You can find more examples like that there.


Does HList take O(n) to check if an element is a duplicate?


At compile time, I guess.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: