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