<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:Arial;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.Typed
{font-family:"Courier New";}
span.tty
{font-family:"Courier New";}
span.Name
{font-style:italic;}
span.Variable
{font-family:"Times New Roman";
font-style:italic;}
span.EmailStyle21
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-family:Consolas;color:navy'>1>
Person={person,{name,{first,joe},{last,armstrong}},{footsize,42}}.</span></p>
<p class=MsoNormal><span style='font-family:Consolas;color:navy'>{person,{name,{first,joe},{last,armstrong}},{footsize,42}}</span></p>
<p class=MsoNormal><span style='font-family:Consolas;color:navy'>2>
{_,{_,_,{_,Last}},_} = Person.</span></p>
<p class=MsoNormal><span style='font-family:Consolas;color:navy'>{person,{name,{first,joe},{last,armstrong}},{footsize,42}}</span></p>
<p class=MsoNormal><span style='font-family:Consolas;color:navy'>3> Last.</span></p>
<p class=MsoNormal><span style='font-family:Consolas;color:navy'>armstrong</span></p>
<p class=MsoNormal><span style='color:navy'> </span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'>
<hr size=2 width="100%" align=center tabindex=-1>
</div>
<p class=MsoNormal><b><span style='font-family:Tahoma'>From:</span></b><span
style='font-family:Tahoma'> erlang-questions-bounces@erlang.org
[mailto:erlang-questions-bounces@erlang.org] <b>On Behalf Of </b>Caitlin
Gibbons<br>
<b>Sent:</b> Wednesday, June 18, 2008 13:37<br>
<b>To:</b> erlang-questions@erlang.org<br>
<b>Subject:</b> [erlang-questions] Help with tuple pattern match?</span></p>
</div>
<p class=MsoNormal> </p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Hi all.<br>
<br>
I'm looking at:<br>
<br>
Person={person,{name,{first,joe},{last,armstrong}},{footsize,42}}.<br>
<br>
and trying to extract the value of 'last', i.e., 'armstrong'.<br>
<br>
{_,{_,{_,{_,Last},_}=Person.<br>
<br>
was unsuccessful. Any help?<br>
<br>
Thanks,<br>
<br>
Caitlin</p>
</div>
</div>
</body>
</html>