chickadee » aima » compose-environments

compose-environments #!rest environmentsprocedure

Compose environments into a single environment suitable for `simulate'.

`compose-environments' effectively `ands' over its constituent environments every step.

environments
The environments to be composed
(define (compose-environments . environments)
  (lambda ()
    (every identity (map (lambda (environment) (environment)) environments))))