diff options
Diffstat (limited to 'examples/18-function-expression')
| -rw-r--r-- | examples/18-function-expression/shed.toml | 7 | ||||
| -rw-r--r-- | examples/18-function-expression/src/HelloWorld.shed | 11 |
2 files changed, 0 insertions, 18 deletions
diff --git a/examples/18-function-expression/shed.toml b/examples/18-function-expression/shed.toml deleted file mode 100644 index bf5c13c4..00000000 --- a/examples/18-function-expression/shed.toml +++ /dev/null @@ -1,7 +0,0 @@ -[[shed.bins]] -name = "hello-world" -main-namespace = "HelloWorld" - -[[shed.examples]] -bin = "hello-world" -expected-output = "hello, world" diff --git a/examples/18-function-expression/src/HelloWorld.shed b/examples/18-function-expression/src/HelloWorld.shed deleted file mode 100644 index 1ebb2863..00000000 --- a/examples/18-function-expression/src/HelloWorld.shed +++ /dev/null @@ -1,11 +0,0 @@ -fun printer(left: String) -> fn (String) ! Io -> Unit { - fn (right: String) !Io -> Unit { - print!(left); - print!(right); - } -} - -pub fun main() ! Io -> Unit { - printer("hello")!(", "); - printer("world")!("\n"); -} |
