1# `:defl`, `?+`, "wutlus" `{$deft p/wing q/twig r/(list (pair twig twig))}`
3Switch with default value.
5Identical to `?-` except for that it takes a default case `q` if none of the
6cases in `r` match the type of `p`. More specifically, the labels in `q` must
7match the span of `p`. As with `?-`, the most common type used to switch on is the cube, which begins with `%` followed by text.
31Here is a simple example of `?+` showing that although the cases must
32match the span of its input, all possible cases don't need to be covered
33since `?+` has a default case. We create a core, `cor` that takes an
34input `typ`, a `@ta`. Calling `cor` selects one of our cases when it is
35covered, or the default.
47 ! /~zod/try/~2014.11.2..16.45.31..7b2a:<[1 1].[3 7]>
49 ! ford: call ~hidper-sommur
51 ! error in app %shell on ~zod at instance /shell/terminal
58This example shows how `?+` can fail. Our input span must match the span
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list