2023-09-02 01:06:17 +03:00
|
|
|
:: A trivial working pill which requires no jets. Requires cradle.hoon
|
|
|
|
:: from this scaffolding directory.
|
|
|
|
::
|
2023-02-14 05:22:10 +03:00
|
|
|
/+ cradle
|
2023-02-12 03:24:38 +03:00
|
|
|
!.
|
|
|
|
=/ core
|
2023-02-14 05:22:10 +03:00
|
|
|
=> cradle
|
2023-02-12 03:24:38 +03:00
|
|
|
!=
|
2023-02-14 05:22:10 +03:00
|
|
|
=>
|
2023-02-12 03:24:38 +03:00
|
|
|
|%
|
|
|
|
+$ card (cask)
|
|
|
|
++ cask |$ [a] (pair mark a)
|
|
|
|
+$ knot @ta
|
|
|
|
++ list |$ [item] $@(~ [i=item t=(list item)])
|
|
|
|
+$ mark @tas
|
|
|
|
+$ ovum [=wire =card]
|
|
|
|
++ pair |$ [head tail] [p=head q=tail]
|
|
|
|
+$ path (list knot)
|
|
|
|
+$ wire path
|
|
|
|
-- =>
|
|
|
|
::
|
|
|
|
|%
|
|
|
|
++ load !!
|
|
|
|
++ peek _~
|
|
|
|
++ wish !!
|
|
|
|
++ poke
|
|
|
|
|= [now=@da ovo=ovum]
|
|
|
|
^- ^
|
|
|
|
:: ~> %slog.[0 'got']
|
|
|
|
:: ~> %slog.[0 -.card.ovo]
|
|
|
|
=/ fec [//term/1 %blit [%put "effect"] [%nel ~] ~]
|
|
|
|
[[fec ~] ..poke]
|
|
|
|
--
|
|
|
|
::
|
|
|
|
|= [now=@da ovo=ovum]
|
|
|
|
^- *
|
|
|
|
.(+> +:(poke now ovo))
|
|
|
|
::
|
|
|
|
|%
|
|
|
|
++ aeon
|
|
|
|
^- *
|
|
|
|
=> *[arvo=* epic=*]
|
|
|
|
!=
|
|
|
|
|- ^- *
|
|
|
|
?@ epic arvo
|
|
|
|
%= $
|
|
|
|
epic +.epic
|
|
|
|
arvo .*([arvo -.epic] [%9 2 %10 [6 %0 3] %0 2])
|
|
|
|
==
|
|
|
|
--
|
2023-02-14 05:22:10 +03:00
|
|
|
[%pill %baby [aeon .*(cradle core) ~] ~ ~]
|