mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 20:04:09 +03:00
39 lines
845 B
Plaintext
39 lines
845 B
Plaintext
::
|
|
:::: /hoon/action/sole/mar
|
|
::
|
|
/? 310
|
|
/- sole
|
|
!:
|
|
::::
|
|
::
|
|
[sole .]
|
|
|_ sole-action
|
|
::
|
|
++ grab :: convert from
|
|
|%
|
|
++ json
|
|
|= jon/^json ^- sole-action
|
|
%- need %. jon
|
|
=> [jo ..sole-action]
|
|
|^ (fo %ret (of det+change ~))
|
|
++ fo
|
|
|* {a/term b/fist}
|
|
|=(c/json ?.(=([%s a] c) (b c) (some [a ~])))
|
|
::
|
|
++ ra
|
|
|* {a/{term fist} b/fist}
|
|
|= c/json %. c
|
|
?.(=(%a -.c) b (pe -.a (ar +.a)))
|
|
::
|
|
++ change (ot ler+(at ni ni ~) ted+(cu |*(a/* [0v0 a]) edit) ~)
|
|
++ char (cu turf so)
|
|
++ edit
|
|
%+ fo %nop
|
|
%+ ra mor+|=(json (edit +<))
|
|
(of del+ni set+(cu tuba sa) ins+(ot at+ni cha+char ~) ~)
|
|
--
|
|
::
|
|
++ noun sole-action :: clam from %noun
|
|
--
|
|
--
|