on 492ae2f help sign in
31 lines 573 B history raw
1### `++wonk`
3XX Not a model?
5Pull result out of a `++edge`, or crash if there's no result.
7Source
8------
10 ++ wonk |*(veq=edge ?~(q.veq !! p.u.q.veq)) ::
12Examples
13--------
15See also: [`++edge`]()
17 ~zod/try=> (wide:vast [1 1] "(add 2 2)")
18 [ p=[p=1 q=10]
19 q
20 [ ~
21 [ p=[%cnhp p=[%cnzz p=~[%add]] q=~[[%dtzy p=%ud q=2] [%dtzy p=%ud q=2]]]
22 q=[p=[p=1 q=10] q=""]
23 ]
24 ]
25 ]
26 ~zod/try=> (wonk (wide:vast [1 1] "(add 2 2)"))
27 [%cnhp p=[%cnzz p=~[%add]] q=~[[%dtzy p=%ud q=2] [%dtzy p=%ud q=2]]]
31***