rs,state: Explicitly state what happens when there are no more contexts.

This commit is contained in:
Sergiu Ivanov 2020-03-02 23:42:03 +01:00
parent b5f5eb55fc
commit d753409a2f

3
rs.rkt
View file

@ -139,7 +139,8 @@
;;; A state of a reaction system is a set of species representing the ;;; A state of a reaction system is a set of species representing the
;;; result of the application of the reactions from the previous ;;; result of the application of the reactions from the previous
;;; steps, plus the rest of the context sequence. ;;; steps, plus the rest of the context sequence. When the context
;;; sequence is empty, nothing is added to the current state.
(struct state (result rest-contexts) #:transparent) (struct state (result rest-contexts) #:transparent)
;;; The dynamics of the reaction system only stores the reaction ;;; The dynamics of the reaction system only stores the reaction