wanpeebaw
2020-5-30 18:35:20

Are there any amb similar or alternatives in Racket? https://ds26gte.github.io/tyscheme/index-Z-H-16.html



soegaard2
2020-5-30 18:39:09

And if you want to use amb without sicp, then copy these lines: https://github.com/sicp-lang/sicp/blob/master/sicp/main.rkt#L42-L61


soegaard2
2020-5-30 18:40:34

If you want to know about the alternative control operators (it’s a bit of a rabbit hole), then look at racket/control. https://docs.racket-lang.org/reference/cont.html?q=amb#%28mod-path._racket%2Fcontrol%29