Welcome to DrRacket, version 8.4 [cs]. Language: racket, with debugging; memory limit: 128 MB. > 1 1 > 1.4 1.4 > 1/2 1/2 > #t #t > #f #f > true #t > false #f > "acesta este un string" "acesta este un string" > 'acestaesteunliteral 'acestaesteunliteral > 'acestaesteun4443 'acestaesteun4443 > abc . . abc: undefined; cannot reference an identifier before its definition > abc 5 > 'abc ; apostroful face ca expresia care urmează să nu fie evaluată 'abc > (cons a b) . . a: undefined; cannot reference an identifier before its definition > (cons 'a 'b) '(a . b) > (car (cons 'a 'b)) 'a > (cdr (cons 'a 'b)) 'b > (first (cons 'a 'b)) . . first: contract violation expected: (and/c list? (not/c empty?)) given: '(a . b) > (list 1 2 3 4) '(1 2 3 4) > (car (list 1 2 3 4)) 1 > (cdr (list 1 2 3 4)) '(2 3 4) > (cdr (cdr (cdr (cdr (list 1 2 3 4))))) '() > (cddddr (list 1 2 3 4)) '() > (cons 1 (cons 2 '())) '(1 2) > (cons 1 (cons 2 (cons 3 '()))) '(1 2 3) > (cons 1 (cons 2 (cons 3 4))) '(1 2 3 . 4) > '(1 2 3 4) '(1 2 3 4) > (1 2 3 4) . . application: not a procedure; expected a procedure that can be applied to arguments given: 1 > (+ 1 2 3 4) 10 > '(+ 1 2 3 4) '(+ 1 2 3 4) > (car '(+ 1 2 3 4)) '+ > ((car '(+ 1 2 3 4)) 5 6) ; aici + este încă o expresia apostrofată . . application: not a procedure; expected a procedure that can be applied to arguments given: '+ > ((eval (car '(+ 1 2 3 4))) 5 6) 11 > '(+ 1 2 (a b c) (1 . 5) 4) '(+ 1 2 (a b c) (1 . 5) 4) > (cons 'a (list 1 2 3 4)) '(a 1 2 3 4) > (append '(1 2 3) '(4 5 6)) '(1 2 3 4 5 6) > '() '() > (null? '()) #t > (length (append '(1 2 3) '(4 5 6))) 6 > (member 1 '(2 3 4 5)) #f > (member 3 '(2 3 4 5)) '(3 4 5) > (if (> 2 3) 'este 'nu-este) 'nu-este > (if #f 'este 'nu-este) 'nu-este > (if (member 1 '(1 2 3)) 'este 'nu-este) 'este > (if 0 'este 'nu-este) 'este > (if 0 'este) . if: missing an "else" expression in: (if 0 (quote este)) >