aboutsummaryrefslogtreecommitdiff
path: root/examples/19-function-expression
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2025-01-11 11:44:45 +0000
committerMichael Williamson <mike@zwobble.org>2025-01-12 14:32:55 +0000
commit0d2ac550c25550f9588ec0a1b5885169260f67d6 (patch)
tree68d8b36a98a6d58314bf6e14aba6d8b629805d59 /examples/19-function-expression
parent7b3405d766195f50bcb69f1c17f07b45fa0516eb (diff)
Support local project dependencies
Diffstat (limited to 'examples/19-function-expression')
-rw-r--r--examples/19-function-expression/shed-examples.json59
-rw-r--r--examples/19-function-expression/shed.json58
-rw-r--r--examples/19-function-expression/src/HelloWorld.shed11
3 files changed, 0 insertions, 28 deletions
diff --git a/examples/19-function-expression/shed-examples.json5 b/examples/19-function-expression/shed-examples.json5
deleted file mode 100644
index 531c665f..00000000
--- a/examples/19-function-expression/shed-examples.json5
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- examples: [
- {
- project: ".",
- bin: "hello-world",
- expectedOutput: "hello, world",
- },
- ],
-}
diff --git a/examples/19-function-expression/shed.json5 b/examples/19-function-expression/shed.json5
deleted file mode 100644
index a6c8e563..00000000
--- a/examples/19-function-expression/shed.json5
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- bins: [
- {
- name: "hello-world",
- mainNamespace: "HelloWorld",
- },
- ],
-}
diff --git a/examples/19-function-expression/src/HelloWorld.shed b/examples/19-function-expression/src/HelloWorld.shed
deleted file mode 100644
index 1ebb2863..00000000
--- a/examples/19-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");
-}