Skip to content

Commit

Permalink
move to state
Browse files Browse the repository at this point in the history
  • Loading branch information
LuKuangChen committed Oct 2, 2024
1 parent 915ccb1 commit 36a299d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hof/semantics.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@
(unless (list? r)
(error 'cons "the second argument must be a list: ~a" r))
(cons f r))

(provide maybe?)
(define (maybe?)
(>= (random) 0.5))
4 changes: 4 additions & 0 deletions state/semantics.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@
(unless (= (vec-len p) 2)
(error 'set-right! "the first argument must be a pair: ~a" p))
(vector-set! p 1 v))

(provide maybe?)
(define (maybe?)
(>= (random) 0.5))

0 comments on commit 36a299d

Please sign in to comment.