Variable not in scope
sara_n (2)

For every piece of code that I wrote, I get ''variable not in scope''. (for example :
length1 :: [a] -> Int
length1 l | l==[] =0
| otherwise = 1 + length1 tail l
some of the other solutions i tried are written by my teaher.

You are viewing a single comment. View All
sara_n (2)

@MATTHEWBECHTEL I was wondering why it wouldnt work, but I solved the problem.

sara_n (2)

@MATTHEWBECHTEL thanks for wanting to help :)


Your welcome.
Upvote this comment if it helps @sara_n


Also Upvote all my comments that help @sara_n