diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-12-24 14:20:16 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-12-24 14:20:16 -0500 |
| commit | 9e0017e86ed28ccc2f855807f387a1e451260d85 (patch) | |
| tree | 7fe1b0b931dc82777d8b471e95147eb1edfda184 /environment.c | |
| parent | f4b105456ad5f0949800d19acdb3403de26d7678 (diff) | |
Add Int:factorial() and n:choose(k)
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/environment.c b/environment.c index 8c207d15..bda4c0d4 100644 --- a/environment.c +++ b/environment.c @@ -119,8 +119,10 @@ env_t *new_compilation_unit(CORD libname) {"bit_and", "Int$bit_and", "func(x,y:Int -> Int)"}, {"bit_or", "Int$bit_or", "func(x,y:Int -> Int)"}, {"bit_xor", "Int$bit_xor", "func(x,y:Int -> Int)"}, + {"choose", "Int$choose", "func(x,y:Int -> Int)"}, {"clamped", "Int$clamped", "func(x,low,high:Int -> Int)"}, {"divided_by", "Int$divided_by", "func(x,y:Int -> Int)"}, + {"factorial", "Int$factorial", "func(x:Int -> Int)"}, {"format", "Int$format", "func(i:Int, digits=0 -> Text)"}, {"gcd", "Int$gcd", "func(x,y:Int -> Int)"}, {"parse", "Int$parse", "func(text:Text -> Int?)"}, |
