all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
7
Task/Time-a-function/Racket/time-a-function.rkt
Normal file
7
Task/Time-a-function/Racket/time-a-function.rkt
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#lang racket
|
||||
(define (fact n)
|
||||
(if (zero? n)
|
||||
1
|
||||
(* n (fact (sub1 n)))))
|
||||
|
||||
(time (fact 5000))
|
||||
Loading…
Add table
Add a link
Reference in a new issue