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

Reduce sounds like a really slow way to do string building


Oh yeah, it's horrendous, my point was just that it's functionally equivalent and makes more sense as a function than a method on either object. You can actually call it like this if you want, though: `str.join(separator, iterable)`.




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

Search: