remove more useless code
This commit is contained in:
parent
414cb602af
commit
476ace2593
|
|
@ -31,9 +31,7 @@ main = do
|
|||
putStrLn "part 2: "
|
||||
let dots2 = map (\d -> foldl (flip fold) d folds) dots
|
||||
let dots2' = S.fromList dots2
|
||||
let min_x = minimum $ map fst dots2
|
||||
let max_x = maximum $ map fst dots2
|
||||
let min_y = minimum $ map snd dots2
|
||||
let max_y = maximum $ map snd dots2
|
||||
mapM_ (\y -> do
|
||||
mapM_ (\x -> putChar (if (x,y) `S.member` dots2' then '#' else '.')) [0..max_x]
|
||||
|
|
|
|||
Loading…
Reference in New Issue