Skip to content

Commit

Permalink
Fix rng state
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinborner committed Nov 27, 2024
1 parent 4b38d1a commit 82ebc97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/fun/rng-state.bruijn
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ rand-bool map even? rand
# normal bind
triple rand >>= [rand >>= [rand >>= [pure [0 1 2 3]]]]

:test ((triple (+50) [[1]]) =? (+595)) ([[[2]]])
:test ((triple (+50) [[1]] [[[0]]]) =? (+595)) ([[1]])

main string→number → triple
main string→number → triple → &[[1]]

0 comments on commit 82ebc97

Please sign in to comment.