mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
26 lines
478 B
Plaintext
26 lines
478 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)}")
|
|
%- sort :_ aor
|
|
%- turn :_ |=([a=@t ~] a)
|
|
(~(tap by `(map ,@t ,~)`r.ark))
|
|
==
|
|
:- (crip (spud pax))
|
|
(lore ;;(,@t .^(%cx pax)))
|