premenn
Download
Skip this Video
Download Presentation
Premenn é

Loading in 2 Seconds...

play fullscreen
1 / 7

Premenn é - PowerPoint PPT Presentation


  • 90 Views
  • Uploaded on

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))

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

PowerPoint Slideshow about ' Premenn é' - geoffrey-lancaster


An Image/Link below is provided (as is) to download presentation

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
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)

premenn1
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))

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

(print c)

(let ((c 5))

(print c)

(print (c? 7))

(print c))

(print c))

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

(print c)

(let ((c 5))

(print c)

(print (c?))

(print c))

(print c))

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

(let ((pocet 2))

#\'(lambda () pocet)))

  • (funcall c!)
ad