urbit/main/bin/cat.hoon
2014-08-18 21:40:11 -07:00

24 lines
441 B
Plaintext

!:
:: /=main=/bin/cat/hoon
::
|= *
|= ape=(list path)
=- ~[-]~
^- gift :- %te
%- zing
%+ turn ape |= pax=path
^- wain
=+ ark=;;(arch .^(%cy pax))
?~ q.ark
?- r.ark
~
~[(crip "~ {(spud pax)}")]
[[@t ~] ~ ~]
$(pax (welp pax /[p.n.r.ark]))
*
:- (crip "* {(spud pax)}")
(turn (~(tap by `(map ,@t ,~)`r.ark)) |=([a=@t ~] a))
==
:- (crip (spud pax))
(lore ;;(,@t .^(%cx pax)))