[erlang-questions] newbie: why this code caused function_clause exception?
Mihai Balea
mihai@REDACTED
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.
Mihai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2411 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080125/c8c6cf00/attachment.bin>
More information about the erlang-questions
mailing list