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

Or even:

indexedList = zip [1..]

Love how ML-like languages let you express just the bare essence of an operation.



Yea, I didn't do that just to make it clearer: if you aren't used to ML, I Imagine that this would be very confusing.




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

Search: