From 441db9fd212a8770008807641b6bc43f1ce431e6 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sat, 7 May 2022 07:41:21 -0400 Subject: Correct Switch definition (fixes #66) --- docs/doc/control.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/doc') diff --git a/docs/doc/control.html b/docs/doc/control.html index b4426630..fbd5f0c5 100644 --- a/docs/doc/control.html +++ b/docs/doc/control.html @@ -18,7 +18,7 @@ # Switch/case statements have many variations; these are a few Match โ† {๐•๐•จ}ยด Select โ† {(โŠ‘๐•ฉ)โ—ถ(1โ†“๐•ฉ)@} -Switch โ† {cโ†โŠ‘๐•ฉ โ‹„ mโ€ฟaโ†<ห˜โ‰โˆ˜โ€ฟ2โฅŠ1โ†“๐•ฉ โ‹„ (โŠ‘aโАC)โ—ถm@} +Switch โ† {cโ†โŠ‘๐•ฉ โ‹„ mโ€ฟaโ†<ห˜โ‰โˆ˜โ€ฟ2โฅŠ1โ†“๐•ฉ โ‹„ (mโŠธโАโŒพ<C)โ—ถa@} Test โ† {fnโ†{Cโ€ฟA๐•Še:Cโ—ถAโ€ฟE}ยด๐•ฉโ‹„Fn@}

Blocks and functions

@@ -126,7 +126,7 @@ }

To test against other possible values, the following statement takes interleaved lists of values and actions, and disentangles them. It searches through the values with โА.

-
Switch โ† {cโ†โŠ‘๐•ฉ โ‹„ mโ€ฟaโ†<ห˜โ‰โˆ˜โ€ฟ2โฅŠ1โ†“๐•ฉ โ‹„ (โŠ‘aโАC)โ—ถm@}
+
Switch โ† {cโ†โŠ‘๐•ฉ โ‹„ mโ€ฟaโ†<ห˜โ‰โˆ˜โ€ฟ2โฅŠ1โ†“๐•ฉ โ‹„ (mโŠธโАโŒพ<C)โ—ถa@}
 
 Switch โŸจvalue
   "increment" โ‹„ {๐•คโ‹„ v+โ†ฉ1}
-- 
cgit v1.2.3