[erlang-questions] Help with tuple pattern match?
Doug Edmunds
dougedmunds@REDACTED
Wed Jun 18 21:25:39 CEST 2008
Also count the braces. You need an equal number of left {'s and
right }'s, regardless of the underlying structure of tuple.
Your
{person,_,{name,_{first,_{last ,_}},{footsize,_}=Person.
has 5 left but only 3 right.
-dae
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080618/3fdb4af4/attachment.htm>
More information about the erlang-questions
mailing list