day13: remove unneeded alias
This commit is contained in:
parent
9b8e4a0e86
commit
bee1ab2eae
|
|
@ -14,8 +14,8 @@ parseFold :: String -> Fold
|
|||
parseFold s = if axis == "x" then Horizontal (read line) else Vertical (read line) where [axis,line] = splitOn "=" $ last (words s)
|
||||
|
||||
fold :: Fold -> Dot -> Dot
|
||||
fold fold@(Vertical f) (x,y) = (x, if y > f then f - (y-f) else y)
|
||||
fold fold@(Horizontal f) (x,y) = (if x > f then f - (x-f) else x, y)
|
||||
fold (Vertical f) (x,y) = (x, if y > f then f - (y-f) else y)
|
||||
fold (Horizontal f) (x,y) = (if x > f then f - (x-f) else x, y)
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
|
|
|
|||
Loading…
Reference in New Issue