mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 02:22:12 +03:00
Simple test pill for memorable.
This commit is contained in:
parent
99072c03b1
commit
2840da1066
31
main/bin/easy1.hoon
Normal file
31
main/bin/easy1.hoon
Normal file
@ -0,0 +1,31 @@
|
||||
!:
|
||||
:: /=main=/bin/solid/hoon
|
||||
::
|
||||
=> .(- `[who=@p how=path]`-)
|
||||
|= [est=time eny=@uw]
|
||||
|= arg=~
|
||||
=+ ^= cor
|
||||
=< |= [x=@ y=@]
|
||||
(add x y)
|
||||
=> %164
|
||||
~% %k164 ~ ~
|
||||
|%
|
||||
++ add
|
||||
~/ %add
|
||||
|= [a=@ b=@]
|
||||
^- @
|
||||
?: =(0 a) b
|
||||
$(a (dec a), b +(b))
|
||||
::
|
||||
++ dec
|
||||
~/ %dec
|
||||
|= a=@
|
||||
~| %decrement-underflow
|
||||
?< =(0 a)
|
||||
=+ b=0
|
||||
|- ^- @
|
||||
?: =(a +(b)) b
|
||||
$(b +(b))
|
||||
--
|
||||
:_ ~ :_ ~
|
||||
[%xx %sage [%easy1 %pill ~] cor]
|
Loading…
Reference in New Issue
Block a user