Question About lists

William Lee Irwin III wli@holomorphy.com
Mon, 30 Dec 2002 12:17:35 -0800


On Mon, Dec 30, 2002 at 01:47:37PM -0600, Artie Gold wrote:
> One suggestion, though is that you're working too hard; there's really 
> no reason to define a locally defined function. The much simpler:
> long [] = 0
> long (x:xs) = 1 + long xs
> will do quite nicely.
> HTH,
> --ag

There is already a length function in List and/or the Prelude.


Bill