Indent
This commit is contained in:
@@ -44,7 +44,7 @@ isLineReflected (y1, x1) (y2, x2) p
|
||||
isVerticalReflection :: (Int, Int) -> Pattern -> Bool
|
||||
isVerticalReflection (y, x) p
|
||||
| y <= fst (snd $ bounds p) = isLineReflected (y, x) (y, x + 1) p && isVerticalReflection (y + 1, x) p
|
||||
| otherwise = True
|
||||
| otherwise = True
|
||||
|
||||
isColReflected :: (Int, Int) -> (Int, Int) -> Pattern -> Bool
|
||||
isColReflected (y1, x1) (y2, x2) p
|
||||
@@ -54,7 +54,7 @@ isColReflected (y1, x1) (y2, x2) p
|
||||
isHorizontalReflection :: (Int, Int) -> Pattern -> Bool
|
||||
isHorizontalReflection (y, x) p
|
||||
| x <= snd (snd $ bounds p) = isColReflected (y, x) (y + 1, x) p && isHorizontalReflection (y, x + 1) p
|
||||
| otherwise = True
|
||||
| otherwise = True
|
||||
|
||||
getVerticalReflection :: Int -> Int -> Pattern -> Int
|
||||
getVerticalReflection x ignore p | x >= snd (snd $ bounds p) = 0
|
||||
|
||||
Reference in New Issue
Block a user