Sha256: ee2352a3c7bfe1e41424ae7d02a6488960b2544eb0e27dc7b14b2322933fb00f

Contents?: true

Size: 323 Bytes

Versions: 44

Compression:

Stored size: 323 Bytes

Contents

-module (pm_strings).
-include_lib("../include/defines.hrl").
-compile(export_all).

string_join(Items, Sep) ->
    lists:flatten(lists:reverse(string_join1(Items, Sep, []))).

string_join1([Head | []], _Sep, Acc) ->
    [Head | Acc];
string_join1([Head | Tail], Sep, Acc) ->
    string_join1(Tail, Sep, [Sep, Head | Acc]).

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
fairchild-poolparty-1.1.3 lib/erlang/messenger/src/pm_strings.erl
fairchild-poolparty-1.1.4 lib/erlang/messenger/src/pm_strings.erl
poolparty-0.2.84 lib/erlang/messenger/src/pm_strings.erl
poolparty-0.2.69 lib/erlang/messenger/src/pm_strings.erl