Premenn é

1 / 7

# Premenn é - PowerPoint PPT Presentation

Premenn é. (defparameter a) (defparameter a 10 &quot;Globalna premenna a&quot;) (defvar b) (defvar b 7 &quot;Globalna premenna b&quot;) (defvar b 12) (defun a+ () &quot;pristup k premennej a&quot; (incf a) a). Premenn é. (defun c? (c) c) (c? 9) c (let ((c 3) (d)) (setf d (+ c 1)) (list c d))

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.

## PowerPoint Slideshow about ' Premenn é' - geoffrey-lancaster

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Premenné
• (defparameter a)
• (defparameter a 10 "Globalna premenna a")
• (defvar b)
• (defvar b 7 "Globalna premenna b")
• (defvar b 12)
• (defun a+ ()

"pristup k premennej a"

(incf a)

a)

Premenné
• (defun c? (c) c)
• (c? 9)
• c
• (let ((c 3) (d))

(setf d (+ c 1))

(list c d))

• c
• (let* ((c 3) (d (+ c 1)))

(list c d))

Premenné
• (defun c? (c) (print c))
• (let ((c 3))

(print c)

(let ((c 5))

(print c)

(print (c? 7))

(print c))

(print c))

Premenné
• (defparameter c 2)
• (defun c? () (print c))
• (let ((c 3))

(print c)

(let ((c 5))

(print c)

(print (c?))

(print c))

(print c))

Premenné
• a
• (let () (print a))
• (let ((a 2)) (print a))
• a
Premenné
• (setf z 9)
• z
• (let ((x 2)) (setf y 8))
• y
Premenné
• (setf c!

(let ((pocet 2))

#\'(lambda () pocet)))

• (funcall c!)