From 6c111f1e71e945f66977aecc3322318aa21beacc Mon Sep 17 00:00:00 2001 From: razetime Date: Wed, 19 Jan 2022 21:21:13 +0530 Subject: Primitive Symbol help pages generated --- docs/help/!assert assertwithmsg.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docs/help/!assert assertwithmsg.html (limited to 'docs/help/!assert assertwithmsg.html') diff --git a/docs/help/!assert assertwithmsg.html b/docs/help/!assert assertwithmsg.html new file mode 100644 index 00000000..dd6108d1 --- /dev/null +++ b/docs/help/!assert assertwithmsg.html @@ -0,0 +1,31 @@ + + + + BQN: Exclamation Mark (`!`) + + +

Exclamation Mark (!)

+

! 𝕩: Assert

+

Throw an error if 𝕩 is not 1.

+
   ! 1
+1
+   ! 2
+Error: Assertion error
+at ! 2
+   ^
+   ! "hello"
+Error: hello
+at ! "hello"
+
+

𝕨 ! 𝕩: Dyad

+

Throw an error with message 𝕨 if 𝕩 is not 1.

+
   "hi" ! 1
+1
+   "two" ! 2
+Error: two
+at "two" ! 2
+         ^
+   "hello error" ! "hello"
+Error: hello error
+at "hello error" ! "hello"
+
-- cgit v1.2.3