Jump to content

Elementary cellular automaton: Difference between revisions

m
→‎Haskell Array-based solution: (fixed a minor literal in the preamble)
m (Cleanup)
m (→‎Haskell Array-based solution: (fixed a minor literal in the preamble))
Line 1,407:
 
===Array-based solution ===
Straight-forward implementation of CA on a cyclic domain, using imutableimmutable arrays:
 
<lang Haskell>import Data.Array (listArray, (!), bounds, elems)
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.