2015-04-10 09:57:04 +03:00
|
|
|
::
|
2016-02-05 06:05:37 +03:00
|
|
|
:::: /hoon/action/sole/mar
|
2015-04-10 09:57:04 +03:00
|
|
|
::
|
2016-02-18 02:00:12 +03:00
|
|
|
/? 310
|
2015-09-01 23:56:42 +03:00
|
|
|
/- sole
|
2015-04-10 09:57:04 +03:00
|
|
|
!:
|
|
|
|
::::
|
|
|
|
::
|
2015-09-01 23:56:42 +03:00
|
|
|
[sole .]
|
2015-04-10 09:57:04 +03:00
|
|
|
|_ sole-action
|
|
|
|
::
|
|
|
|
++ grab :: convert from
|
|
|
|
|%
|
|
|
|
++ json
|
2016-02-10 22:03:28 +03:00
|
|
|
|= jon/^json ^- sole-action
|
2015-04-10 09:57:04 +03:00
|
|
|
%- need %. jon
|
|
|
|
=> [jo ..sole-action]
|
2016-02-10 22:03:28 +03:00
|
|
|
|^ (fo %ret (of det+change ~))
|
2015-04-10 09:57:04 +03:00
|
|
|
++ fo
|
2016-02-10 22:03:28 +03:00
|
|
|
|* {a/term b/fist}
|
|
|
|
|=(c/json ?.(=([%s a] c) (b c) (some [a ~])))
|
2015-04-10 09:57:04 +03:00
|
|
|
::
|
|
|
|
++ ra
|
2016-02-10 22:03:28 +03:00
|
|
|
|* {a/{term fist} b/fist}
|
|
|
|
|= c/json %. c
|
|
|
|
?.(=(%a -.c) b (pe -.a (ar +.a)))
|
2015-04-10 09:57:04 +03:00
|
|
|
::
|
2016-02-10 22:03:28 +03:00
|
|
|
++ change (ot ler+(at ni ni ~) ted+(cu |*(a/* [0v0 a]) edit) ~)
|
2015-04-10 09:57:04 +03:00
|
|
|
++ char (cu turf so)
|
|
|
|
++ edit
|
|
|
|
%+ fo %nop
|
2016-02-10 22:03:28 +03:00
|
|
|
%+ ra mor+|=(json (edit +<))
|
|
|
|
(of del+ni set+(cu tuba sa) ins+(ot at+ni cha+char ~) ~)
|
2015-04-10 09:57:04 +03:00
|
|
|
--
|
|
|
|
::
|
|
|
|
++ noun sole-action :: clam from %noun
|
|
|
|
--
|
|
|
|
--
|