summaryrefslogtreecommitdiff
path: root/tests/full/nibble/sheep.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/sheep.nb
parentef485d6f3e4df6e1a424ba3797388fa0bba6eb2e (diff)
Introduce lambda expressions.
Diffstat (limited to 'tests/full/nibble/sheep.nb')
-rw-r--r--tests/full/nibble/sheep.nb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/full/nibble/sheep.nb b/tests/full/nibble/sheep.nb
new file mode 100644
index 0000000..922ae84
--- /dev/null
+++ b/tests/full/nibble/sheep.nb
@@ -0,0 +1,3 @@
+let opt x = _ | x;
+let plus x = !(/rec/ x . opt rec);
+match "ba" . plus "a";