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
actor Main | |
let pa: PrintingActor | |
new create(env: Env) => | |
pa = PrintingActor(env.out) | |
env.out.print("Final Result: " + fib(5).string()) | |
fun fib(n: U64): U64 => | |
match n | |
| 0 => 0 |
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
actor Main | |
let pa: PrintingActor | |
new create(env: Env) => | |
pa = PrintingActor(env.out) | |
env.out.print(fib(5).string()) | |
fun fib(n: U64): U64 => | |
match n | |
| 0 => 0 |
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
trait SomeTrait | |
fun tag getVal() : U32 => | |
2 | |
class SomeClass | |
class Some is SomeTrait |
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
trait SomeTrait | |
fun getVal() : U32 => | |
2 | |
class SomeClass |
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
trait SomeTrait | |
fun getVal() : U32 => | |
2 | |
class SomeClass |
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
trait SomeTrait | |
fun getVal() : U32 => | |
2 | |
class SomeClass | |
class Some is SomeTrait |
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
actor Main | |
new create(env: Env) => | |
env.out.print(fib(5, env.out).string()) | |
fun fib(n: U64, out: OutStream): U64 => | |
match n | |
| 0 => 0 | |
| 1 => 1 | |
else | |
let n1 = n - 1 |
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
actor Main | |
let _out: Outstream | |
new create(env: Env) => | |
_out = env.out | |
_out.print(fib(5).string()) | |
fun fib(n: U64): U64 => | |
match n | |
| 0 => 0 | |
| 1 => 1 |
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
actor Main | |
new create(env: Env) => | |
let pa = PrintingActor(env.out) | |
pa.hello() | |
actor PrintingActor | |
let _out: OutStream | |
new create(out: OutStream) => | |
_out = out |
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
actor Main | |
let env: Env | |
new create(env': Env) => | |
env = env' | |
env.out.print(fib(5).string()) | |
fun fib(n: U64): U64 => | |
match n | |
| 0 => 0 |
NewerOlder