networks: Simplify and fix the comment of update.

This commit is contained in:
Sergiu Ivanov 2020-11-12 01:08:10 +01:00
parent 88caecb98a
commit 681ed0e732

View file

@ -175,8 +175,7 @@
;;; multiple different ways. ;;; multiple different ways.
(define network? (hash/c variable? procedure?)) (define network? (hash/c variable? procedure?))
;;; Given a state s updates all the variables from xs. This ;;; Given a state s updates all the variables from xs.
;;; corresponds to a parallel mode.
(define (update network s xs) (define (update network s xs)
(for/fold ([new-s s]) (for/fold ([new-s s])
([x xs]) ([x xs])