networks: Make network? more precise.

Require that the hash table maps variables to procedures, instead of
requiring nothing of the values of the hash table.
This commit is contained in:
Sergiu Ivanov 2020-03-21 19:19:23 +01:00
parent 9682049df5
commit 9113a788a9
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@
(define update-function/c (-> state? any/c))
;;; A network is a mapping from its variables to its update functions.
(define network? variable-mapping?)
(define network? (hash/c variable? procedure?))
;;; Given a state s updates all the variables from xs. This
;;; corresponds to a parallel mode.