projects
/
advent-of-code-16.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a6a294
)
Tidying more
author
Neil Smith
<neil.git@njae.me.uk>
Wed, 14 Dec 2016 19:48:51 +0000
(19:48 +0000)
committer
Neil Smith
<neil.git@njae.me.uk>
Wed, 14 Dec 2016 19:48:51 +0000
(19:48 +0000)
advent14c.hs
patch
|
blob
|
history
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
-