One-dimensional cellular automata: Difference between revisions

m
→‎{{header|Perl 6}}: using the instantiation idiom
m (→‎{{header|Perl 6}}: using the instantiation idiom)
Line 2,380:
 
my $size = 50;
my Automata $a .= Automata.new: :rule(90), :cells( 0 xx $size div 2, 1, 0 xx $size div 2 );
 
say $a++ for ^20;</lang>
1,934

edits