Skip to content

Instantly share code, notes, and snippets.

@philipcmonk
Created February 11, 2023 22:53
Show Gist options
  • Save philipcmonk/42b6d8f2951fecbbb11d611304b9a11a to your computer and use it in GitHub Desktop.
Save philipcmonk/42b6d8f2951fecbbb11d611304b9a11a to your computer and use it in GitHub Desktop.
A baby pill -- no jets required
!.
=> ~
=/ core
!=
=> ~ =>
|%
+$ 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]
[~ ..poke]
--
::
|= [now=@da ovo=ovum]
^- *
.(+> +:(poke now ovo))
::
|%
++ aeon
^- *
=> *[arvo=* epic=*]
!=
|- ^- *
?@ epic arvo
%= $
epic +.epic
arvo
~> %slog.[0 'get 1']
=/ res .*([arvo -.epic] [%9 2 %10 [6 %0 3] %0 2])
~> %slog.[0 'get 2']
res
==
--
[%pill %baby [aeon .*(0 core) ~] ~ ~]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment