This commit is contained in:
parent
4892b3fcac
commit
6e9b85b894
|
@ -6,8 +6,7 @@ main = do
|
||||||
|
|
||||||
day4 p = sum . map (fromEnum . p . show)
|
day4 p = sum . map (fromEnum . p . show)
|
||||||
|
|
||||||
p x
|
p x | sort x /= x = False
|
||||||
| sort x /= x = False
|
|
||||||
| nub x == x = False
|
| nub x == x = False
|
||||||
| otherwise = True
|
| otherwise = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user