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

No need to go that far, CoffeeScript can do both:

    totals = (order.total for order in orders)

    totals = orders.map (o) -> o.total


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

Search: