From 3686b3b60899fa8e93839edbec6a19562ab67ec1 Mon Sep 17 00:00:00 2001 From: Erin Date: Sun, 1 Aug 2021 18:47:13 +0200 Subject: [PATCH] Added carts example --- able-script-test/carts.able | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 able-script-test/carts.able diff --git a/able-script-test/carts.able b/able-script-test/carts.able new file mode 100644 index 0000000..21b5a0d --- /dev/null +++ b/able-script-test/carts.able @@ -0,0 +1,8 @@ +functio helloable() { + "Hello, Able!" print; +} + +var cart = ["able" <= 42, helloable <= "hello"]; + +cart[42] print; +cart["hello"](); \ No newline at end of file