@@ -1,56 +1,21 @@
1−`?+ wutlus`
1+# `:defl`, `?+`, "wutlus" `{$deft p/wing q/twig r/(list (pair twig twig))}`
4−Switch w/default value.
3+Switch with default value.
6−Identical to [`?-`]() except for that it takes a default case `q` if none of the cases in `r` match the type of `p`. More specifically, the labels in `q` must match the [span]() of `p`. `q` must be terminated with a `==`.
5+Identical to `?-` except for that it takes a default case `q` if none of the
6+cases in `r` match the type of `p`. More specifically, the labels in `q` must
7+match the span of `p`. As with `?-`, the most common type used to switch on is the cube, which begins with `%` followed by text.
8−As with `?-`, the most common type used to switch on is the [cube](), which begins with `%` followed by text.
9+Examples:
13−Twig: `[%wtls p=wing q=twig r=tine]`
18−`p` is a [`++wing`](). `q` is a [`++twig`](). `r` is a [`++tine`]().
27 p.i.r q.i.r
12 p.i.r q.i.r
28 p.i.t.r q.i.t.r
13 p.i.t.r q.i.t.r
29 p.i.t.t.r q.i.t.t.r
14 p.i.t.t.r q.i.t.t.r
47− ?+(p q p.i.r q.i.r, p.i.t.r q.i.t.r, p.i.t.t.r q.i.t.t.r)
52 ~zod/try=>
17 ~zod/try=>
53− =cor |= typ=@ta
18+ =cor |= typ/@ta
@@ -64,7 +29,7 @@ Examples
66Here is a simple example of `?+` showing that although the cases must
31Here is a simple example of `?+` showing that although the cases must
67−match the [span]() of its input, all possible cases don't need to be covered
32+match the span of its input, all possible cases don't need to be covered
68since `?+` has a default case. We create a core, `cor` that takes an
33since `?+` has a default case. We create a core, `cor` that takes an
69input `typ`, a `@ta`. Calling `cor` selects one of our cases when it is
34input `typ`, a `@ta`. Calling `cor` selects one of our cases when it is
70covered, or the default.
35covered, or the default.
@@ -92,13 +57,3 @@ covered, or the default.
93This example shows how `?+` can fail. Our input span must match the span
58This example shows how `?+` can fail. Our input span must match the span
94of our cases.
59of our cases.