This commit is contained in:
shu 2019-12-04 11:13:17 +01:00
parent 4892b3fcac
commit 6e9b85b894

View File

@ -6,8 +6,7 @@ main = do
day4 p = sum . map (fromEnum . p . show)
p x
| sort x /= x = False
p x | sort x /= x = False
| nub x == x = False
| otherwise = True