Skip to content

Commit

Permalink
Fix empty state check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKBeck committed Mar 7, 2018
1 parent a3a949e commit 687becf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Created by https://www.gitignore.io/api/scheme,racket

.DS_Store

### Racket ###
*.rkt~
*.rkt.bak
Expand Down
2 changes: 1 addition & 1 deletion state-manipulation.scm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
(define state-empty?
(lambda (state)
(cond
((or (null? state) (equal? (get-top-scope state) (get-top-scope initstate))) #t)
((or (null? state) (equal? state initstate)) #t)
(else #f))))


Expand Down

0 comments on commit 687becf

Please sign in to comment.