<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>



Hello, <BR>&nbsp;<BR>I have to find the first number is a list.<BR>&nbsp;<BR>So first I tried : <BR>&nbsp;<BR>let mylast = last [1,2,3,4]<BR>mylast <BR>&nbsp;<BR>This one works but you have to give 2 commands.<BR>&nbsp;<BR>So i was thinking about using list compreshion.<BR>&nbsp;<BR>So I did : <BR>&nbsp;<BR>[x | x &lt;- [1,2,3,4] , last ]<BR>&nbsp;<BR>But then I see these error : <BR>&nbsp;<BR>Could not match expected type "Bool" with actual type [a0] -&gt; a0 <BR>in the expression last <BR>in stdn of a list compreshion last <BR>in the expression : [x | x &lt;- [1,2,3,4] , last ]<BR>&nbsp;<BR>What is my thinking error ?<BR>&nbsp;<BR>Roelof<BR>&nbsp;<BR>                                               </div></body>
</html>