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

> 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: