use trie comprehension in bank account example

This commit is contained in:
Sam Caldwell 2016-02-22 23:35:06 -05:00
parent aa4e4afdde
commit 874ba60f06
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
(define (observer e _)
(when (patch? e)
(for [(balance (project-assertions (patch-added e) (account (?!))))]
(for-trie ([(account $balance) (patch-added e)])
(printf "Balance changed to ~a\n" balance)))
#f)