One-dimensional cellular automata: Difference between revisions

→‎{{header|J}}: Removed two spurious constructions.
(add E example)
(→‎{{header|J}}: Removed two spurious constructions.)
Line 571:
</pre>
=={{header|J}}==
life1d=: '_#'{~]@ (([:3&(2=+/\) 0,],0:)^:a:)
Example use:
life1d ? 20 # 2
Anonymous user