i'm guessing they mean join in the scripting language sense which is more for creating CSV type strings.<br><br>ie (fictional function):<br>"I,Like,Erlang" = lists:join(["I","Like","Erlang"],",")
<br><br>so join/2 would be something like (newbie alert, just started learning erlang, so excuse the (possibly) bad code):<br><br>join([First|Rest],JoinWith) -><br>   lists:flatten( [First] ++ [ JoinWith ++ X || X <- Rest] ).
<br><br>calling join(["A","B","C"],"+")<br>would result in "A+B+C"<br><br><br><div><span class="gmail_quote">On 9/12/07, <b class="gmail_sendername">igwan</b> <<a href="mailto:igwan@free.fr">
igwan@free.fr</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It does exist :<br><br>erlang:'++'/2<br><br>and the corresponding syntactic sugar :
<br><br>1> [a,b,c] ++ [d,e,f].<br>[a,b,c,d,e,f]<br><br><br>-igwan<br><br>Peter K Chan a écrit :<br>> I looked around and I couldn't find a list:join() implementation for<br>> erlang. Is this intentional? The join function seems to be a useful
<br>> feature to have.<br>><br>> I ended up writing my own version, which was simple enough; but it would<br>> be even better if it is available as a BIF.<br>><br>> Peter<br>> _______________________________________________
<br>> erlang-questions mailing list<br>> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>> <a href="http://www.erlang.org/mailman/listinfo/erlang-questions">http://www.erlang.org/mailman/listinfo/erlang-questions
</a><br>><br><br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions">
http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote></div><br>