RosettaCodeData/Task/Evaluate-binomial-coefficients/Oz/evaluate-binomial-coefficients.oz
2023-07-01 13:44:08 -04:00

10 lines
173 B
Text

declare
fun {BinomialCoeff N K}
{List.foldL {List.number 1 K 1}
fun {$ Z I}
Z * (N-I+1) div I
end
1}
end
in
{Show {BinomialCoeff 5 3}}