Created
November 11, 2015 00:30
-
-
Save darach/c08ca7f54136675fc3aa to your computer and use it in GitHub Desktop.
Random pony examples
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
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