1 / 9

Porovnanie

Porovnanie. ( eq t ‘t) (eq nil ‘nil) (eq nil ‘()) (eq nil ()). Porovnanie. (eq 9 9) (eq 9 (* (+ 2 1) 3)) (eq 9999999999 9999999999) (eq #a #a) (eq #a (char "abc" 1)). Porovnanie. (let ((x 999999999999999999)) (eq x x)) (let* ((x 999999999999999) (y x)) (eq x y))

kieve
Download Presentation

Porovnanie

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Porovnanie • (eq t ‘t) • (eq nil ‘nil) • (eq nil ‘()) • (eq nil ())

  2. Porovnanie • (eq 9 9) • (eq 9 (* (+ 2 1) 3)) • (eq 9999999999 9999999999) • (eq #\a #\a) • (eq #\a (char "abc" 1))

  3. Porovnanie • (let ((x 999999999999999999)) (eq x x)) • (let* ((x 999999999999999) (y x)) (eq x y)) • (let ((x 999999999999999) (y 999999999999999)) (eq x y)) • (eq '(a b) '(a b)) • (let* ((x '(a b)) (y x)) (eq x y)) • (let* ((x '(a b)) (y '(a b))) (eq x y))

  4. Porovnanie • (eql 9999999999 9999999999) • (eql #\a #\a) • (eql '(a b) '(a b)) • (eql "abc" "abc")

  5. Porovnanie • (equal '(a b) '(a b)) • (equal "abc" "abc") • (equal "abc" "ABC") • (equal 1 1.0) • (equal '#(a b) '#(a b))

  6. Porovnanie • (equalp 1 1.0) • (equalp "abc" "ABC") • (equalp '#(a b) '#(a b))

  7. Porovnanie • (= 2 2.0) • (= 'a 'a)

  8. Porovnanie • (not t) • (not nil) • (not 6)

  9. Porovnanie • (and (= 3 3) (< 4 3 5)) • (and (/= 4 3) (<= 3 4 4)) • (and) • (and 2 3 4) • (or (>= 3 4) (> 3 4)) • (or 2 3 4)

More Related