CS 136 Tutorial 1

9:30 - 10:30 am

Full Racket

#lang racket

(f a b) (f a) (f)

Anything that is not false, is true #t for true #f for false

and produces the last argument (if it is empty it is #t, and #f if it has #f) or produces the first non-false argument (or produces #f for all #f)

Conditionals

(cond [q1 a1] [q2 a2] [else a3])

Lists

Tutorial 1 | Home