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

The string multiplication is about _joining_ strings, the inverse is about _splitting_ them in several parts. It's only confusing because the * appends the string to itself, the / is actually very clear.


Disagree. The inverse "string" * value is logically splitting, and then collapsing the repeated values. The logical split can be omitted, but the collapsing cannot.


Naming is hard they say




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

Search: