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

What about a middle ground on swift's syntax?

    Arr.map { $1 * 2 }


That was going to be my suggestion too. With the added benefit that is supports multiple arguments.


Yeah, that'd be pretty cool.




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

Search: