Add hypothetical "pow" function syntax
includes function declaration syntax + ternary expression syntax Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# pow = (n, p) {
|
||||
# p == 0
|
||||
# ?? 1
|
||||
# !! n * pow(n, p - 1)
|
||||
# }
|
||||
|
||||
kilo = pow(2, 10)
|
||||
mega = pow(2, 20)
|
||||
giga = pow(2, 30)
|
||||
|
||||
Reference in New Issue
Block a user