nested-if indentation fix

This commit is contained in:
Shruti_Umat 2020-06-09 22:41:46 +05:30 committed by Pranay Sashank
parent 03ee5ef784
commit 7eab2aff7c

View File

@ -101,8 +101,8 @@ nth :: Int -> [a] -> Maybe a
nth idx (x:xs) = if idx == 0
then Just x
else if idx < 0
then Nothing
else nth (idx - 1) xs
then Nothing
else nth (idx - 1) xs
nth _ [] = Nothing