Skip to content

Commit

Permalink
Add missing accumulator comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoBasso committed Dec 3, 2017
1 parent 83c8cf5 commit 83b9d9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 11-graphs/pp01-count-rooms-tr.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
;; `todo` is (list-of Room); a worklist accumulator.
;; `visited` is (list-of String); context-preseving accumulator containing
;; names of already visited rooms.
;; `count` is Natural; the number of visited rooms (not their names).
;; It is a result so far accumulator.
(local [(define (fn-for-room r todo visited count)
(if (member (room-name r) visited)
(fn-for-lor todo visited count)
Expand Down

0 comments on commit 83b9d9c

Please sign in to comment.