[Haskell-cafe] Re: [Haskell] lazy constructors

MR K P SCHUPKE k.schupke at imperial.ac.uk
Wed Oct 13 08:18:33 EDT 2004


>addToSPair :: Char -> (String, String) -> (String, String)


What about:

addToSPair :: Char -> String -> String -> (String,String)

so that the pattern match is:

addToSPair c xs ys = (c:xs,ys)

This is irrefutable?

	Keean.


More information about the Haskell-Cafe mailing list