Closed camspiers closed 10 years ago
I like it. I will implement that and update the PR (with rebase)
Done @nikic
That was fast!
One last question: Do you think it's better to stick with the "classic" PHP implode
name, or use the join
alias instead, that is used by all other languages?
Ooo, good question. I like join as it is shorter. But let me know what you like.
Merged using join
name. Also swapped order of arguments to be consistent with PHP and most other iter functions (which have the iterator as the second arg).
Awesome!
On Friday, 31 January 2014, Nikita Popov notifications@github.com wrote:
Merged using join name. Also swapped order of arguments to be consistent with PHP and most other iter functions (which have the iterator as the second arg).
— Reply to this email directly or view it on GitHubhttps://github.com/nikic/iter/pull/13#issuecomment-33747730 .
Takes an iterable and joins its elements with a string
Examples: