Re: How can I join an array by a substring?
Chris Angelico <[email protected]> Wed, 24 Apr 2019 22:10:52 +1000
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <CAPTjJmqLLpa2kVKAivERcVzqDg05sG2YsPXoHjY3WFpr7nD0Zg@mail.gmail.com> |
On Wed, Apr 24, 2019 at 10:04 PM MineMoreGames <[email protected]> wrote: > > Let's say I've got ({"This", "is", "a", "test"}) > And I want to join it by a white space to get > "This is a test" > > How can I achieve that? The exact converse of splitting: you multiply the array by a string :) arr * " "; ChrisA