Last active
December 3, 2019 17:09
-
-
Save EpicEric/f8c51df2ee8e932bd6138a2c54a16692 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
actor Main | |
new create(env: Env) => | |
var y: String ref = "ABCD".string() | |
var x: String ref = "John".string() | |
let f: {(String ref, String ref): None ? } ref = | |
{(a: String ref, b: String ref)? => b(0)? = a(0)? = b(0)? } ref | |
let f' = f~apply(y)? | |
try f'(x)? end | |
env.out.print(x.string()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment