(no subject)

Phil Haymen phaymen@yahoo.com
Sat, 9 Feb 2002 11:08:54 -0800 (PST)


hi,I have a function, using list comprehension to pick
out the head and last elements from a list of lists
and output this into a list without duplicates. It
doesn't work. I want to know what is the error. 

function :: [[Int]] -> [Int] 
function seg = nub (concat([head s, last s | s <-
seg])  

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com