As another small self-contained project that may attract more contributors (#319):
sleep(T) shall sleep for T seconds (a floating point number).
Rust provides thread::sleep() for this:
https://doc.rust-lang.org/std/thread/fn.sleep.html
library(time) would be a good place to provide sleep/1. See https://github.com/mthom/scryer-prolog/pull/367/commits/4693c23a4970cdc3437d75b1e61df768282b48fa for an example of how predicates can be added to Scryer.
I made a PR.
Wow, thank you a lot! I have filed https://github.com/notoria/scryer-prolog/pull/3 to update the comment.
Perfect, I am closing this issue, since the pull request is already open.
https://github.com/mthom/scryer-prolog/pull/371
Many thanks!
Most helpful comment
I made a PR.