[erlang-questions] string:join([], Str) fails

Serge Aleynikov saleyn@REDACTED
Mon Feb 11 14:31:56 CET 2008


I noticed that strings:join([], Str) is not handled in the implementation:

1> string:join([], ",").
** exception error: no function clause matching string:join([],",")

This looks like an oversight, as it's not symmetric to string:tokens/2:

2> string:tokens([], ",").
[]

Serge




More information about the erlang-questions mailing list