Last active
April 17, 2019 20:10
-
-
Save zindel/d97bdc7f5aef10bcf4f8f4a578b659c6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ret = box([1,2,3]) >> mapU(lambda x: x * x) >> unbox | |
print ret | |
# [1, 4, 9] | |
print (box() >> mapU(lambda x: x * x) >> unbox) | |
# None | |
print (box({"some": "dict"}) >> mapU(lambda x: x * x) >> unbox) | |
# TypeError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment