aboutsummaryrefslogtreecommitdiff
path: root/help/assert_assertwithmessage.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-19 16:06:15 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-19 16:07:54 -0500
commit8c2607133c1147eee5588738c9b05467b799b127 (patch)
tree4e60cd11ca720dac4c68268a32c61b8ce1d0ec12 /help/assert_assertwithmessage.md
parent9adb6f754d9e69b9db28b413eba90e3c4515d649 (diff)
Align filenames with repl.js descriptions
Diffstat (limited to 'help/assert_assertwithmessage.md')
-rw-r--r--help/assert_assertwithmessage.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/help/assert_assertwithmessage.md b/help/assert_assertwithmessage.md
new file mode 100644
index 00000000..fc90b367
--- /dev/null
+++ b/help/assert_assertwithmessage.md
@@ -0,0 +1,29 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/assert_assertwithmessage.html).*
+
+# Exclamation Mark (`!`)
+
+## `! 𝕩`: Assert
+
+Throw an error if `𝕩` is not 1.
+
+ ! 1
+
+ ! 2
+
+ ! "hello"
+
+
+
+
+## `𝕨 ! 𝕩`: Dyad
+
+Throw an error with message `𝕨` if `𝕩` is not 1.
+
+ "hi" ! 1
+
+ "two" ! 2
+
+ "hello error" ! "hello"
+
+
+