Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active November 10, 2017 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/3bb5c4ff22fb12bed90a0cc0dde43068 to your computer and use it in GitHub Desktop.
Save deque-blog/3bb5c4ff22fb12bed90a0cc0dde43068 to your computer and use it in GitHub Desktop.
REPL> botSequence .| password 3 (== "Scotty")
WriteLine "Password:"
(WriteLine "Spock"
(WriteLine "Login failed: 1 attempt(s)."
(WriteLine "Password:"
(WriteLine "Search again..."
(ReadLine (\x =>
WriteLine "Scotty"
(WriteLine "Successful login after 2 attempt(s)."
(Pure True))))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment