Elementary cellular automaton/Infinite length: Difference between revisions
Content deleted Content added
Added Kotlin |
m →{{header|Kotlin}}: Minor formatting changes |
||
Line 324: | Line 324: | ||
{{trans|C++}} |
{{trans|C++}} |
||
<lang scala>// version 1.1.51 |
<lang scala>// version 1.1.51 |
||
fun evolve(l: Int, rule: Int) { |
fun evolve(l: Int, rule: Int) { |
||
println(" Rule #$rule:") |
println(" Rule #$rule:") |
||
Line 362: | Line 363: | ||
evolve(35, 90) |
evolve(35, 90) |
||
println() |
println() |
||
⚫ | |||
} |
|||
⚫ | |||
{{out}} |
{{out}} |