day7: remove now superfluous list comprehension

This commit is contained in:
Gattix 2022-12-08 23:00:15 +01:00
parent 86d4234631
commit b29e31d614

@ -47,7 +47,7 @@ walk _ z = z
getDirSize :: IZipper -> Int
getDirSize ((Folder _ nodes),_) = sum [getSize node | node<-nodes]
getDirSize ((Folder _ nodes),_) = sum $ map getSize nodes
where getSize (File _ size) = size
getSize folder = getDirSize (folder,[])
getDirSize _ = 0