Skip to content

Instantly share code, notes, and snippets.

@darach
Created November 11, 2015 00:30
Show Gist options
  • Save darach/c08ca7f54136675fc3aa to your computer and use it in GitHub Desktop.
Save darach/c08ca7f54136675fc3aa to your computer and use it in GitHub Desktop.
Random pony examples
use "collections"
actor Main
fun pass[A : Any #read](ln: A): List[A] =>
List[A].push(consume ln)
new create(env : Env) =>
try
env.out.print("Got: " + pass[String]("hello")(0) as String)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment