Elementary cellular automaton/Infinite length: Difference between revisions
Elementary cellular automaton/Infinite length (view source)
Revision as of 23:41, 29 September 2019
, 4 years ago→{{header|Julia}}
m (julia example) |
|||
Line 445:
=={{header|Julia}}==
{{trans|Python}}
<lang julia>
notcell(cell) = (cell == '1') ? '0' : '1'
celllength = length(cells)
rulebits = reverse(string(rule, base = 2, pad = 8))
|