This commit is contained in:
parent
4892b3fcac
commit
6e9b85b894
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user