I have the following code:
#light
let rec fib n =
if n=0 || n=1 then 1 //<- here on the "1"
n + fib n-1 + fib n-2
How do i fix this?
[i’ve seen this but it didn’t help]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are missing an
else. You also need some extra parenthesis: