diff --git a/collects/2htdp/universe.ss b/collects/2htdp/universe.ss index a3e41e8a21..8cfa1be796 100644 --- a/collects/2htdp/universe.ss +++ b/collects/2htdp/universe.ss @@ -74,9 +74,12 @@ LOCALHOST ;; IP ) -#; (provide-higher-order-primitive - run-simulation (create-scene) ; (Number Number Number (Nat -> Scene) -> true) + run-simulation (create-scene) ; (Nat -> Scene) -> Nat + ) + +(provide-higher-order-primitive + animate (create-scene) ; (Nat -> Scene) -> Nat ) (define MOUSE-EVTS @@ -171,6 +174,8 @@ (check-proc 'run-simulation f 1 "first" "one argument") (big-bang 1 (on-tick add1) (on-draw f))) +(define animate run-simulation) + (define (run-movie r m*) (check-arg 'run-movie (positive? r) "positive number" "first" r) (check-arg 'run-movie (list? m*) "list (of images)" "second" m*)