[erlang-questions] Help with tuple pattern match?

Rapsey <>
Wed Jun 18 20:57:53 CEST 2008


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


Sergej

2008/6/18 Caitlin Gibbons <>:

> 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
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080618/52617359/attachment.html>


More information about the erlang-questions mailing list