Skip to content

Instantly share code, notes, and snippets.

@EpicEric
Last active December 3, 2019 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EpicEric/f8c51df2ee8e932bd6138a2c54a16692 to your computer and use it in GitHub Desktop.
Save EpicEric/f8c51df2ee8e932bd6138a2c54a16692 to your computer and use it in GitHub Desktop.
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