From 5407868620e39f3c7a16732c6f3bbe47bbac483f Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Sat, 7 Aug 2021 15:09:37 -0400 Subject: [PATCH] Add documentation of @ pattern in match --- src/boot/boot.janet | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 1e902c42..809d86aa 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -1637,6 +1637,10 @@ * `_` symbol -- the last special case is the `_` symbol, which is a wildcard that will match any value without creating a binding. + While a symbol pattern will ordinarily match any value, the pattern `(@ )`, + where is any symbol, will attempt to match `x` against a value + already bound to ``, rather than matching and rebinding it. + Any other value pattern will only match if it is equal to `x`. ``` [x & cases]