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

> the function doesn't care about the type, but just whether it implements a next() method?

You're describing an "existential" type.



... or a typeclass.




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

Search: