One-dimensional cellular automata: Difference between revisions

→‎Composition of pure functions: (The task example is rule 104, which needs a richer seeding)
(→‎Python :: Composition of pure functions: Adjusted one value name for legibility)
(→‎Composition of pure functions: (The task example is rule 104, which needs a richer seeding))
Line 3,996:
===Composition of pure functions===
 
Interpreting the rule shown in the task description as a Wolfram rule 22, and generalising enough to allow for other rules of this kind:
<lang python>"""Cellular Automata"""
 
9,659

edits