From 8c2607133c1147eee5588738c9b05467b799b127 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 19 Jan 2022 16:06:15 -0500 Subject: Align filenames with repl.js descriptions --- help/assert_assertwithmessage.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 help/assert_assertwithmessage.md (limited to 'help/assert_assertwithmessage.md') 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" + + + -- cgit v1.2.3