summaryrefslogtreecommitdiff
path: root/tests/full/nibble/ratata.nb
diff options
context:
space:
mode:
authorGreg Brown <gmb60@cam.ac.uk>2021-05-06 19:40:59 +0100
committerGreg Brown <gmb60@cam.ac.uk>2021-05-06 19:40:59 +0100
commitdfc08ff2c6580bbeb3951b223e0332546ba3b0d9 (patch)
tree60597dd9492b9c2dfa10ea610289f143dd3e41b7 /tests/full/nibble/ratata.nb
parentef485d6f3e4df6e1a424ba3797388fa0bba6eb2e (diff)
Introduce lambda expressions.
Diffstat (limited to 'tests/full/nibble/ratata.nb')
-rw-r--r--tests/full/nibble/ratata.nb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/full/nibble/ratata.nb b/tests/full/nibble/ratata.nb
new file mode 100644
index 0000000..feeccca
--- /dev/null
+++ b/tests/full/nibble/ratata.nb
@@ -0,0 +1,3 @@
+let opt x = _ | x;
+let plus x = !(/rec/ x . opt rec);
+match plus (("r" | "t") . "a");