on 492ae2f help sign in
41 lines 759 B history raw
1### `++mute`
3Untyped virtual
5Kicks a `++trap`, producing its result as a noun or the tanks of any
6error that occurs. Similar to `++mule`, but preserves no type
7information.
9Accepts
10-------
12`taq` is a `++trap`.
13Produces
14--------
16Either a noun or a `++list` of `++tank`.
18Source
19------
21 ++ mute :: untyped virtual
22 |= taq/_^?(|.(**))
23 ^- (each * (list tank))
24 =+ ton=(mock [taq 9 2 0 1] |=({* *} ~))
25 ?- -.ton
26 $0 [%& p.ton]
27 $1 [%| (turn p.ton |=(a/* (smyt (path a))))]
28 $2 [%| p.ton]
29 ==
32Examples
33--------
35 ~zod/try=> (mute |.(leaf/"hello"))
36 [%.y p=[1.717.658.988 104 101 108 108 111 0]]
37 ~zod/try=> (mute |.(!!))
38 [%.n p=~]
41***