slight day 6 cleanup
This commit is contained in:
parent
04830003a3
commit
366b3950b3
3
6-a.hs
3
6-a.hs
|
@ -4,6 +4,5 @@ markerLength = 4
|
|||
|
||||
main = interact $
|
||||
show
|
||||
. (+ 1)
|
||||
. (!! 0)
|
||||
. (+ 1) . head
|
||||
. (\l -> filter (\i -> markerLength == length (nub $ map (l !!) [i - (markerLength - 1) .. i])) [(markerLength - 1)..])
|
Loading…
Reference in New Issue