From 9e0017e86ed28ccc2f855807f387a1e451260d85 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 24 Dec 2024 14:20:16 -0500 Subject: Add Int:factorial() and n:choose(k) --- environment.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'environment.c') 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?)"}, -- cgit v1.2.3