diff options
Diffstat (limited to 'std/Math.bruijn')
-rw-r--r-- | std/Math.bruijn | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/Math.bruijn b/std/Math.bruijn index 7b94283..31dd572 100644 --- a/std/Math.bruijn +++ b/std/Math.bruijn @@ -2,7 +2,7 @@ :import std/List . -:input std/Number . +:input std/Number # adds all values in list sum foldl add (+0) ⧗ (List Number) → Number @@ -67,7 +67,7 @@ pow […!!… (iterate (…⋅… 0) (+1))] ⧗ Number → Number → Number …**… pow -:test (((+2) ** (+3)) =? ((+8))) (true) +:test (((+2) ** (+3)) =? (+8)) (true) # power function using ternary exponentiation (TODO: slow..) pow' z [[[rec]]] ⧗ Number → Number → Number |