[erlang-questions] syntax errror on :
Garrett Smith
g@REDACTED
Sat Aug 8 20:24:42 CEST 2015
This is actually Joe's way:
On Sat, Aug 8, 2015 at 1:19 PM, Roelof Wobben <r.wobben@REDACTED> wrote:
> char_to_shape(Char) ->
>> case Char of
>> $R -> get_dimension(rectangle);
>> $T -> triangle;
>> $E -> ellipse;
>> $r -> rectangle;
>> $t -> triangle;
>> $e -> ellipse
>> end.
>
>
I think your immediate problem is just reading a bit more carefully. Oh,
and try not to use the list as a compiler :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150808/133e8923/attachment.htm>
More information about the erlang-questions
mailing list