I am new in haskell trying to do a small task
get1th ( a , _, _ , _) = a
foo input =
where input = (a:_,b:_,c:_,d:_)
if ( length (get1th input) == 2 )
then permutations[2]
else permutations[3]
I am getting error saying
parse error on input `where'
please give me a hint
whereis used. Take a look here: learnyouahaskell.com/syntax-in-functions#where