[erlang-questions] Help with tuple pattern match?

Caitlin Gibbons bioprogrammer@REDACTED
Wed Jun 18 20:36:32 CEST 2008


Hi all.

I'm looking at:

Person={person,{name,{first,joe},{last,armstrong}},{footsize,42}}.

and trying to extract the value of 'last', i.e., 'armstrong'.

{_,{_,{_,{_,Last},_}=Person.

was unsuccessful. Any help?

Thanks,

Caitlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080618/eec3a411/attachment.htm>


More information about the erlang-questions mailing list