takeEveryNth :: [Int] -> Int -> [Int]
takeEveryNth g destination
| [] destination == []
| otherwise = [g !! destination] ++ takeEveryNth (drop (destination+1) g) destination
I keep getting the error message in the title for line 4 of this code ( | otherwise =…) I have tried changing the indentation but can't figure why I am getting this error