Created
June 30, 2017 21:51
-
-
Save Xe/2f495a5d6654f1d0f08c0787b4caa6f8 to your computer and use it in GitHub Desktop.
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
type | |
π = object | |
π = object | |
π = object | |
ππ = object | |
ππ = object | |
proc `$`(p: π): string = "π " | |
proc `$`(a: π): string = "π " | |
proc `$`(p: π): string = "π " | |
proc `$`(ap: ππ): string = "ππ " | |
proc `$`(pp: ππ): string = "ππ " | |
echo π(), π(), " -> ", ππ() | |
echo π(), π(), " -> ", ππ() | |
echo ππ(), ππ() | |
echo π(), π(), π(), π() |
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
[~/c/c/t/ppap] : ./ppap | |
π π -> ππ | |
π π -> ππ | |
ππ ππ | |
π π π π |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment