Created
March 4, 2020 06:10
-
-
Save zerotypic/c16ce269f242038fd1b0a5f13daec2cf 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
| class to(object): | |
| def __init__(self, func): self.func = func | |
| def __ror__(self, other): return self.func(other) | |
| 42 | to(hex) | to(print) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment