2 lines
83 B
Racket
2 lines
83 B
Racket
(define (factorial n)
|
|
(for/fold ([pro 1]) ([i (in-range 1 (+ n 1))]) (* pro i)))
|