mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
Add test user-level jet.
This commit is contained in:
parent
947bd1cb97
commit
7d9a4c6073
@ -2237,7 +2237,7 @@
|
||||
::
|
||||
+- tap :: adds list to end
|
||||
|= b=(list ,_?>(?=(^ a) n.a))
|
||||
=+ z=0 :: XX breaks match
|
||||
=+ z=0 :: XX breaks jet match
|
||||
^+ b
|
||||
?~ a
|
||||
b
|
||||
|
@ -1,12 +1,19 @@
|
||||
::
|
||||
:: zuse (3), standard library (tang)
|
||||
::
|
||||
~% %zuse + ~
|
||||
|%
|
||||
:::::::::::::::::::::::::::::::::::::::::::::::::::::: ::
|
||||
:::: chapter 3b, Arvo libraries ::::
|
||||
:: ::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
:: section 3bA, lite number theory ::
|
||||
::
|
||||
++ dope
|
||||
~/ %dope
|
||||
|= a=@
|
||||
~& [%dope-zuse (mug +>)]
|
||||
:(mul a a a)
|
||||
::
|
||||
++ fu :: modulo (mul p q)
|
||||
|= a=[p=@ q=@]
|
||||
=+ b=?:(=([0 0] a) 0 (~(inv fo p.a) (~(sit fo p.a) q.a)))
|
||||
|
@ -1,5 +1,8 @@
|
||||
~% %util +> ~
|
||||
|%
|
||||
++ sqar
|
||||
~/ %sqar
|
||||
|= @
|
||||
(mul +< +<)
|
||||
:: (dope +<)
|
||||
:(mul +< +< +<)
|
||||
--
|
||||
|
@ -1,7 +1,8 @@
|
||||
/+ sqar
|
||||
!:
|
||||
;html
|
||||
;head
|
||||
;title: skwaring
|
||||
;title: skuaring
|
||||
==
|
||||
;body
|
||||
;p: 15 skwared is {<(sqar 15)>}
|
||||
|
Loading…
Reference in New Issue
Block a user