mirror of
https://github.com/urbit/shrub.git
synced 2024-12-12 10:29:01 +03:00
25 lines
274 B
Plaintext
25 lines
274 B
Plaintext
?> ?=([@ @] .)
|
|
%. .
|
|
|= [x=@ y=@]
|
|
=- (add:all x y)
|
|
^= all
|
|
=> %164
|
|
~% %k164 ~ ~
|
|
|%
|
|
++ add
|
|
~/ %add
|
|
|= [a=@ b=@]
|
|
^- @
|
|
?: =(0 a) b
|
|
$(a (dec a), b +(b))
|
|
::
|
|
++ dec
|
|
~/ %dec
|
|
|= a=@
|
|
?< =(0 a)
|
|
=+ b=0
|
|
|- ^- @
|
|
?: =(a +(b)) b
|
|
$(b +(b))
|
|
--
|