[From nobody Mon Feb 10 12:14:23 2020
Return-path: &lt;erlang-questions-bounces@erlang.org&gt;
Received: by 10.114.46.7 with SMTP id t7cs19830wat; Mon,
 11 Feb 2008 07:08:54 -0800 (PST)
Received: by 10.78.185.15 with SMTP id i15mr100855huf.61.1202742533557; Mon,
 11 Feb 2008 07:08:53 -0800 (PST)
Received: from morgoth.cslab.ericsson.net
 (morgoth.cslab.ericsson.net [193.180.168.22]) by mx.google.com with
 ESMTP id 34si615912nfu.37.2008.02.11.07.07.46;
 Mon, 11 Feb 2008 07:08:53 -0800 (PST)
Received: from morgoth.cslab.ericsson.net
 (_mailman@localhost.cslab.ericsson.net [IPv6:::1])
 by morgoth.cslab.ericsson.net (8.14.0/8.14.0) with ESMTP id
 m1BF1Z0N003281; Mon, 11 Feb 2008 16:01:47 +0100 (CET)
Received: from mta3.srv.hcvlny.cv.net (mta3.srv.hcvlny.cv.net [167.206.4.198])
 by morgoth.cslab.ericsson.net (8.14.0/8.14.0) with ESMTP
 id	m1BF1Xrx031609	for
 &lt;erlang-questions@erlang.org&gt;; Mon, 11 Feb 2008 16:01:33 +0100 (CET)
Received: from [192.168.15.101]
 (ool-457db488.dyn.optonline.net [69.125.180.136])
 by	mta3.srv.hcvlny.cv.net
 (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007))
 with ESMTP id &lt;0JW200GKMTIYY8Q0@mta3.srv.hcvlny.cv.net&gt; for
 erlang-questions@erlang.org; Mon, 11 Feb 2008 08:30:34 -0500 (EST)
Date: Mon, 11 Feb 2008 08:31:56 -0500
From: Serge Aleynikov &lt;saleyn@gmail.com&gt;
Subject: [erlang-questions] string:join([], Str) fails
Sender: erlang-questions-bounces@erlang.org
To: Erlang Users' List &lt;erlang-questions@erlang.org&gt;
Errors-to: erlang-questions-bounces@erlang.org
Message-id: &lt;47B04E4C.10605@gmail.com&gt;
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
Precedence: list
X-BeenThere: erlang-questions@erlang.org
Delivered-to: saleyn@gmail.com
Received-SPF: neutral (google.com: 193.180.168.22 is neither permitted nor
 denied by best guess record for domain of
 erlang-questions-bounces@erlang.org) client-ip=193.180.168.22;
Authentication-Results: mx.google.com; spf=neutral (google.com: 193.180.168.22
 is neither permitted nor denied by best guess record
 for domain of erlang-questions-bounces@erlang.org)
 smtp.mail=erlang-questions-bounces@erlang.org
X-Account-Key: account2
X-Mozilla-Keys: 
X-Mailman-Version: 2.1.9
List-Post: &lt;mailto:erlang-questions@erlang.org&gt;
List-Subscribe: &lt;http://www.erlang.org/mailman/listinfo/erlang-questions&gt;,
 &lt;mailto:erlang-questions-request@erlang.org?subject=subscribe&gt;
List-Unsubscribe: &lt;http://www.erlang.org/mailman/listinfo/erlang-questions&gt;,
 &lt;mailto:erlang-questions-request@erlang.org?subject=unsubscribe&gt;
List-Archive: &lt;http://www.erlang.org/pipermail/erlang-questions&gt;
List-Help: &lt;mailto:erlang-questions-request@erlang.org?subject=help&gt;
List-Id: Erlang/OTP discussions &lt;erlang-questions.erlang.org&gt;
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)

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

1&gt; string:join([], &quot;,&quot;).
** exception error: no function clause matching string:join([],&quot;,&quot;)

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

2&gt; string:tokens([], &quot;,&quot;).
[]

Serge

_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-questions

]