2009-06-10 20:34:50 -04:00
|
|
|
(define ones (map (lambda (x) 1) (iota 1000000)))
|
|
|
|
|
|
|
|
(display (apply + ones))
|
|
|
|
(newline)
|
|
|
|
|
2009-04-01 00:31:49 -04:00
|
|
|
(define (big n)
|
|
|
|
(if (<= n 0)
|
|
|
|
0
|
|
|
|
`(+ 1 1 1 1 1 1 1 1 1 1 ,(big (- n 1)))))
|
|
|
|
|
2009-06-10 20:34:50 -04:00
|
|
|
(define nst (big 100000))
|
2009-04-01 00:31:49 -04:00
|
|
|
|
|
|
|
(display (eval nst))
|
|
|
|
(newline)
|
|
|
|
|
2009-06-10 20:34:50 -04:00
|
|
|
(define longg (cons '+ ones))
|
|
|
|
(display (eval longg))
|
|
|
|
(newline)
|
|
|
|
|
2009-04-01 00:31:49 -04:00
|
|
|
(define (f x)
|
|
|
|
(begin (display x)
|
|
|
|
(newline)
|
|
|
|
(f (+ x 1))
|
|
|
|
0))
|