Open ShalokShalom opened 7 years ago
This means you have tried to call a function called isNegative
with an argument n < 0
.
Elm doesn't find a variable called n
, and suggests alternatives that are also one letter and comparable to 0, so it finds the constant e
.
What you actually wanted to do is write isNegative 0
or isNegative 23
or isNegative -42
.
Hopefully the error message here will be improved, since it makes no sense to call isNegative
with a boolean argument anyway.
Thanks a lot.
I am following the tutorial, which says
I tried to do it intuitive, as a newbie to programming:
What means this message? It is maybe appropriate to link a nice tutorial, which shows to usage of functions?