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

You could also define a typeclass Intable, and a function (Intable a) => a -> Int, which will work on any type that implements Intable.



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

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

Search: