Created
May 30, 2011 04:51
-
-
Save alexnask/998470 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
| HwWriter := Class new | |
| HwWriter write := name: n -> ("Hello, " + name) println | |
| f := [left: a right: b; ^a+b] | |
| f = left: a right: b -> ^a+b | |
| g := [a b; ^a-b] | |
| g = a b -> ^a-b | |
| main := -> | |
| "Hello World!" println | |
| hw := HwWriter new | |
| hw write name: "Alex" | |
| f left:1 right:41 toString println | |
| f :1 :41 toString println | |
| g value:43 value:1 toString println | |
| g :43 :1 toString println | |
| ^0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment