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

> But I also would like to be able to call .sum() on my iterable at the end of a chain

Yeah, one thing I like about Ruby over Python is the fluent code th former allows of that style.

People talk about Guido not liking functional style, but that explains comprehensions over map/filter, but not function-sum() over method .sum().



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

Search: