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

Hans Bolinder hans.bolinder@REDACTED
Tue Mar 25 13:39:44 CET 2008


[Serge Aleynikov:]
> 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([], ",").
> []

Thanks. We will fix it in R12B-2.

Best regards,

Hans Bolinder, Erlang/OTP team



More information about the erlang-bugs mailing list