From 3e15935528f17cbf6c13c0af21992f1e05bdf443 Mon Sep 17 00:00:00 2001 From: Drahflow Date: Sun, 2 Mar 2014 00:23:33 +0100 Subject: A small example on modifyability --- examples/working/arraylimits.ey | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/working/arraylimits.ey (limited to 'examples/working/arraylimits.ey') diff --git a/examples/working/arraylimits.ey b/examples/working/arraylimits.ey new file mode 100644 index 0000000..97057a8 --- /dev/null +++ b/examples/working/arraylimits.ey @@ -0,0 +1,17 @@ +< + "]" | "]]" deffd + + { + ]] _ =*a len ==l + { + _ 0 lt { "index too low" die } rep + _ l ge { "index too high" die } rep + a + } + } +> -- "]" deffd + +[ 1 2 3 ] =*a + +1 a +7 a -- cgit v1.2.3