Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
{def arithmetic
|
||||
{lambda {:x :y}
|
||||
{S.map {{lambda {:x :y :op}
|
||||
{br}applying :op on :x & :y returns {:op :x :y}} :x :y}
|
||||
+ - * / % pow max min = > <}}}
|
||||
-> arithmetic
|
||||
|
||||
{arithmetic 8 12}
|
||||
->
|
||||
applying + on 8 & 12 returns 20
|
||||
applying - on 8 & 12 returns -4
|
||||
applying * on 8 & 12 returns 96
|
||||
applying / on 8 & 12 returns 0.6666666666666666
|
||||
applying % on 8 & 12 returns 8
|
||||
applying pow on 8 & 12 returns 68719476736
|
||||
applying max on 8 & 12 returns 12
|
||||
applying min on 8 & 12 returns 8
|
||||
applying = on 8 & 12 returns false
|
||||
applying > on 8 & 12 returns false
|
||||
applying < on 8 & 12 returns true
|
||||
Loading…
Add table
Add a link
Reference in a new issue