(define x10); define a variable x with value 10(if #t1020); if #t is true, return 10, otherwise return 20(cond ((= x10)"x is 10")((= x20)"x is 20")(else "x is not 10 or 20")); conditional statement(and #t#f); #f(or #t#f); #t(let ((x10)(y20))(+ xy)); let statement to create local variables(let* ((x10)(y(+ x10)))(+ xy)); let* statement to create local variables and use the value of previous variables(lambda (x)(+ x10)); lambda expression to create a function that adds 10 to a given number(map (lambda (x)(+ x10))(list 123)); map function to apply a function to each element of a list(define (sum-of-squaresxy)(+ (* xx)(* yy))); define a function that takes two numbers and returns their sum of squares(sum-of-squares34); 25
lambda expression
1
2
(define (add-tenx)(+ x10)); define a function that adds 10 to a given number(add-ten5); 15