[erlang-questions] how to add a tuple to a list.

Loïc Hoguin essen@REDACTED
Thu Jan 29 20:15:28 CET 2015


On 01/29/2015 08:14 PM, Roelof Wobben wrote:
> write(Key, Element, Db) ->
>     [ [{key, data}] | Db ]
>
>
> and this the output of c(db).
>
>
> 3> c(db).
> db.erl:12: syntax error before:

Tells you there's a missing dot there.

-- 
Loïc Hoguin
http://ninenines.eu



More information about the erlang-questions mailing list