[erlang-questions] newbie: why this code caused function_clause exception?
Sat Jan 26 05:07:46 CET 2008
On Jan 25, 2008, at 9:57 PM, Anthony Kong wrote:
> 1) Why the list comprehension in the p2:main() caused the
> function_clause exception?
My guess is that your getfib function returns an integer and not a
list, which is why your list comprehension fails.
You might want to upgrade to R12 (5.6), it has much better (more
helpful) error messages.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2411 bytes
Desc: not available
More information about the erlang-questions