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

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


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

Search: