a one dimensional cellular automata, using comonads
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- module Comonad where
-
- -------------------
- -- comonad class --
- -------------------
-
- class Functor w => Comonad w
- where
- (=>>) :: w a -> (w a -> b) -> w b
- extract :: w a -> a
- duplicate :: w a -> w (w a)
- x =>> f = fmap f (duplicate x)
|