[Haskell-cafe] Odd lack of laziness

Andrew Coppin andrewcoppin at btinternet.com
Fri Jun 22 14:14:39 EDT 2007

Chaddaï Fouché wrote:
> You should be using BS.null f rather than BS.length f > 0.
While we're on the subject... anybody know a neat way to check, say, 
whether a list contains exactly 1 element? (Obviously pattern matching 
can do it, but that requires big case-expressions...)

More information about the Haskell-Cafe mailing list