shrub/pkg/arvo/lib/ford-reef.hoon
2024-03-13 14:34:17 -04:00

36 lines
573 B
Plaintext

/- neo
=>
|%
++ card card:neo
--
^- firm:neo
|%
+$ state [cache=(unit vase) ~]
+$ poke ~
++ kids ~
++ deps ~
++ form
^- form:neo
|_ [=bowl:neo case=@ud state-vase=vase *]
+* sta !<(state state-vase)
++ call
|= [old-state=vase act=*]
*(list card:neo)
++ reduce
|= pok=*
^- vase
state-vase
++ init
|= old=(unit vase)
=+ !<(ref=vase (need old))
!>(`state`[`ref ~])
++ born *(list card:neo)
++ echo
|= [=pith val=*]
*(list card:neo)
++ take
|= =sign:neo
*(list card:neo)
--
--