HN2new | past | comments | ask | show | jobs | submitlogin

Ok this was a 'wat' moment for me until I realized that map passes up to 3 args to the function, including index, and parseint accepts a radix parameter. Still kinda weird/unintuitive, I could see myself not paying attention and reducing to the first example accidentally.


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

Search: