From 9cfc45f731a121282f47218d6ab80c5b9b06e277 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 28 Jan 2022 20:56:46 -0500 Subject: Add ;:? to keybar and help --- docs/help/predicate.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docs/help/predicate.html (limited to 'docs/help/predicate.html') diff --git a/docs/help/predicate.html b/docs/help/predicate.html new file mode 100644 index 00000000..fdd89394 --- /dev/null +++ b/docs/help/predicate.html @@ -0,0 +1,21 @@ + + + + BQN: Question Mark (?) + + +

Question Mark (?)

+

?: Predicate

+

→full documentation

+

Follows a statement in a block, which must return 0 or 1. If it's 0, stop the current body and evaluate the next eligible one instead. Variables defined before the ? stay if execution continues (1) but don't carry over to other bodies (0).

+↗️
    {0 ? 3 ; 4}
+4
+
+    Min  {𝕨<𝕩 ? 𝕨 ; 𝕩}
+
+    3 Min 5
+3
+
+    4 Min 2
+2
+
-- cgit v1.2.3