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

I don't quite understand how this code works. Where does the `nil` come from? What operation are we performing on 3 that causes it to return `nil`?


1, 2, and 3 are being passed as lookups to the a hash. 3 is undefined on the hash, hence nil.


Ah, that makes sense. Thank you!




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

Search: