
3 Sep
2003
3 Sep
'03
7:16 p.m.
Am Mittwoch, 3. September 2003 12:50 schrieb Steffen Mazanek:
Hello,
all_fib :: [Float]
You define "all_fib" to return a list of "Float", but "even" does only work for numbers whose type is an instance of the class Integral, e.g. Int.
HTH and ciao, Steffen
And I see no reason to define it as a list of Float because all Fibonacci numbers are natural numbers. So better write: all_fib :: [Integer] Wolfgang