Permalink
Browse files

forgot to add erls_utils in last commit

  • Loading branch information...
1 parent c748613 commit 5661da52025009c3b7b8d1248ebf2d5ac6214418 Tristan Sloughter committed Mar 12, 2010
Showing with 17 additions and 0 deletions.
  1. +17 −0 lib/erlastic_search/src/erls_utils.erl
@@ -0,0 +1,17 @@
+%%%-------------------------------------------------------------------
+%%% @author Tristan Sloughter <>
+%%% @copyright (C) 2010, Tristan Sloughter
+%%% @doc
+%%%
+%%% @end
+%%% Created : 14 Feb 2010 by Tristan Sloughter <>
+%%%-------------------------------------------------------------------
+-module(erls_utils).
+-compile([export_all]).
+
+comma_separate([H | []]) ->
+ H;
+comma_separate(List) ->
+ lists:foldl(fun(String, Acc) ->
+ io_list:format("~s,~s", String, Acc)
+ end, "", List).

0 comments on commit 5661da5

Please sign in to comment.