Re: list comprehension

2001-10-19 Thread Rijk-Jan van Haaften
Hello, Hi, I have a script here   interleave :: [Integer] -> [Strings] -> [String] interleave (x:xs) (y:ys)     = words [a | a <- (unwords [(show x), (filter (/= 1) y), "+"])]   Firstly, "Strings" is not a standard type. I suspect you mean "String" so the type signature is interleave :: [In

Re: list comprehension

2001-10-19 Thread Ch. A. Herrmann
> "Stephanie" == Stephanie Randles <[EMAIL PROTECTED]> writes: Stephanie> Hi, I have a script here Stephanie> interleave :: [Integer] -> [Strings] -> [String] Stephanie> interleave (x:xs) (y:ys) = words [a | a <- (unwords Stephanie> [(show x), (filter (/= 1) y), "+"])] S