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
ThatSmart (89)

@sara_n I know, but duzina isn't defined. Your function is called length1, or it was when I looked at it. You can definitely name your functions in another language, you just can't expect haskell to translate for you.