mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 00:13:12 +03:00
tiny: adds, jets +dvr
This commit is contained in:
parent
17b97de8f8
commit
67310811b2
@ -82,6 +82,12 @@
|
||||
?: (lth a b) c
|
||||
$(a (sub a b), c +(c))
|
||||
::
|
||||
++ dvr :: divide w/remainder
|
||||
~/ %dvr
|
||||
|: [a=`@`1 b=`@`1]
|
||||
^- [p=@ q=@]
|
||||
[(div a b) (mod a b)]
|
||||
::
|
||||
++ mod :: modulus
|
||||
~/ %mod
|
||||
|: [a=`@`1 b=`@`1]
|
||||
|
@ -2101,6 +2101,7 @@ u3j_core _a50_d[] =
|
||||
{ { "add", 7, _140_one_add_a, 0, _140_one_add_ha },
|
||||
{ "dec", 7, _140_one_dec_a, 0, _140_one_dec_ha },
|
||||
{ "div", 7, _140_one_div_a, 0, _140_one_div_ha },
|
||||
{ "dvr", 7, _140_one_dvr_a, 0, _140_one_dvr_ha },
|
||||
{ "gte", 7, _140_one_gte_a, 0, _140_one_gte_ha },
|
||||
{ "gth", 7, _140_one_gth_a, 0, _140_one_gth_ha },
|
||||
{ "lte", 7, _140_one_lte_a, 0, _140_one_lte_ha },
|
||||
|
Loading…
Reference in New Issue
Block a user