urbit/main/app/bang/core.hook
2015-01-11 00:00:36 -08:00

20 lines
367 B
Plaintext

:: Bang: send cards to arvo
::
:::: /hook/core/bang/app
::
// /===lib/sh-utils
!:
|_ [hide ~]
++ lima |*(a=(pole) ?~(a ~ [i t]=a(+ (..$ +.a))))
++ poke--args
|* [ost=bone @ a=[* (pole)]]
=> .(a ^.(lima a))
:_(+> (turn a |*(b=_i.a [ost %pass / b])))
::
++ pour
%- add-exit
|= [@ * sih=*]
~& bang-resp/(,[term term] [&1 &2]:sih)
`+>.$
--