projects
/
advent-of-code-16.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tidying more
[advent-of-code-16.git]
/
advent14c.hs
diff --git
a/advent14c.hs
b/advent14c.hs
index a43e37fe4233d0a13ae4c9446fcc0cdaf966ed27..af8a4afefe69ebbe5b9978e75c974127cc0d97ed 100644
(file)
--- a/
advent14c.hs
+++ b/
advent14c.hs
@@
-43,4
+43,3
@@
repeats n = filter (null . tail) . map (nub) . substrings n
substrings :: Int -> [a] -> [[a]]
substrings l = filter (\s -> (length s) == l) . map (take l) . tails
-