Thue-Morse: Difference between revisions
m
→{{header|Haskell}}: (Tidying the non-finite sequence version)
No edit summary |
m (→{{header|Haskell}}: (Tidying the non-finite sequence version)) |
||
Line 731:
The infinite sequence itself:
<lang haskell>thueMorse
thueMorse = 0 : g
where
main :: IO ()
{{Out}}
<pre>[0,1,1,0,1,0,0,1,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,1]</
=={{header|J}}==
|