forked from AbleScript/ablescript
Added carts example
This commit is contained in:
parent
83a4f67121
commit
3686b3b608
8
able-script-test/carts.able
Normal file
8
able-script-test/carts.able
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
functio helloable() {
|
||||||
|
"Hello, Able!" print;
|
||||||
|
}
|
||||||
|
|
||||||
|
var cart = ["able" <= 42, helloable <= "hello"];
|
||||||
|
|
||||||
|
cart[42] print;
|
||||||
|
cart["hello"]();
|
Loading…
Reference in a new issue