CSC151.01 2006S, Class 05: Symbols and Lists Admin: * Assigned: HW3: Reconfiguring Lists. * Due: HW2. * Extra credit for attending next week's convocation. * Extra credit for attending next week's CS extra. * Although the outline indicates some content, we'll focus on the lab today. * Read "Numeric Values in Scheme" * Monday: Sam will assign lab partners for the week. Overview: * Symbolic values. * Lists. * Lab. Reflection, Notes, and More Remember, (cons x xs) means (approximately) "build a new list by putting the value x and the front of the list xs" "car" means "the first element of the list" "cdr" means "all but the first element of the list" - When given a list as a parameter, cdr always returns a list DO NOT BUILD LISTS USING QUOTE * You can, however, use quote to build symbols. * '(b c) NO * (list 'b 'c) YES