lstrojny / functional-php

Primitives for functional programming in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implode/Join for lists

MazeChaZer opened this issue · comments

I may be missing something here, but is there some kind of join function that behaves like implode but returns a list?

join('-', ['a', 'b', 'c']) === ['a', '-', 'b', '-', 'c']

There isn’t one yet. Feel free to contribute one!

Great! I will look into it when I have the time.