Jump to content

Factorial: Difference between revisions

m
(→‎{{header|Clojure}}: added trampolining solution, updated all solutions to support arbitrary precision)
Line 5,668:
<syntaxhighlight lang="langur">val .factorial = f(.i) {
var .answer = 1
for .x in 2 to.. .i {
.answer x= .x
}
1,007

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.