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

Needs more maps and greps. :)

Seriously though, I use maps and greps a lot now, often chained to transform a data structure from one type to another. I'm annoyed when I have to drop to a for(each) loop.



Yeah maps are awesome! I only changed the conditionals and nothing else, to show how easy it is to flatten deeply-nested logic.




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

Search: