Created
April 22, 2015 21:50
-
-
Save jMyles/804ad85a85cb26e5d762 to your computer and use it in GitHub Desktop.
maybe in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def tell_me_the_answer(question): | |
if question.determine_truth: | |
return True | |
if not question.determine_truth: | |
return False | |
## Conceptually, why not? | |
if question.dont_know_yet: | |
return Maybe # Twisted calls this NOT_DONE_YET |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
return bool(question) if question.is_known else Maybe