shrub/try/bin/app.hoon

41 lines
729 B
Plaintext
Raw Normal View History

2013-11-26 02:59:17 +04:00
!:
:: /=main=/bin/tach/hoon
::
=> %= .
+
=> +
|%
2013-11-26 02:59:17 +04:00
++ word
%hello
2013-12-18 13:48:24 +04:00
::
++ spag :: index
|# [a=@ b=(list)]
?~ b
~|('snag-fail' !!)
?: =(0 a)
~_ b
i.b
$(b t.b, a (dec a))
2013-12-20 21:34:13 +04:00
::
++ humo :: homogenize
|# a=(list)
|-
^- $_ =< $
|%
+- $
?: _?
~
[i=(snag 0 a) t=$]
--
a
2013-11-26 02:59:17 +04:00
--
==
|= *
2013-12-18 13:48:24 +04:00
|= ~
2013-11-26 02:59:17 +04:00
^- bowl
:_ ~ :_ ~
:- %$
2013-11-26 02:59:17 +04:00
!>
2013-12-20 21:34:13 +04:00
=+ foo=[1 2 3 4 5 ~]
(homo foo)