networks: Say that domain mappings may be empty.

This commit is contained in:
Sergiu Ivanov 2020-11-22 21:30:50 +01:00
parent 27bb25c201
commit 97026a2a42

View file

@ -184,6 +184,10 @@
;;; A network consists of a mapping from its variables to its update
;;; variables, as a well as of a mapping from its variables to
;;; their domains.
;;;
;;; The domain mapping does not have to assign domains to all
;;; variables (e.g., it may be empty), but in this case the functions
;;; which need to know the domains will not work.
(struct network (functions domains))
;;; Builds a network from a given hash table assigning functions to
@ -261,6 +265,10 @@
;;; A network form consists of a mapping from variables to the forms
;;; of their update functions, together with a mapping from its
;;; variables to its update functions.
;;;
;;; The domain mapping does not have to assign domains to all
;;; variables (e.g., it may be empty), but in this case the functions
;;; which need to know the domains will not work.
(struct network-form (forms domains))
;;; Build an update function from an update function form.