lisp lang examples
This commit is contained in:
parent
64f1523778
commit
2d105b2d9b
2 changed files with 15 additions and 0 deletions
10
lisp/example1.lisp
Normal file
10
lisp/example1.lisp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(defun b1 ()
|
||||
(let ((x 0))
|
||||
(dotimes (n 250000000) (incf x))
|
||||
x))
|
||||
|
||||
(defun b2 ()
|
||||
(let ((x 0))
|
||||
(declare (fixnum x))
|
||||
(dotimes (n 1000000000) (incf x))
|
||||
x))
|
||||
Loading…
Add table
Add a link
Reference in a new issue