I ran into this on problem 24. Apparently a function call binds
tighter than adding an element to a list. So,
fun x::xs
means
(fun x)::xs
not
fun (x::xs)
as you (or at least I) would think.
f 3 + 5
You would (well, I would) expect f 3 to be done first....
If you buy that, then the rules are consistent. :-)
- Mattox
--
A. Mattox Beckman, Jr., Ph.D. <beckm...@gmail.com>
Computer Science, Illinois Institute of Technology
- Where there is life, there is hope. - J. R. R. Tolkien (and others....)