CSC104H1 Lecture Notes - Lecture 3: Data Type

55 views2 pages
26 Sep 2016
School
Course

Document Summary

; the list datatype : hold multiple values in a single value (require picturing-programs) ; here are four expressions, confusingly placed on one line: 104 hello (+ 1 2 3) (triangle 15 solid blue) ; we can notice that those produce separate values by using them all at once in places where. 104 hello (+ 1 2 3) (triangle 15 solid blue)) : expects only 1 argument, but found 4. ; (define stuff 104 hello (+ 1 2 3) (triangle 15 solid blue)) ; define: expected only one expression after the variable name stuff, but found 3 extra parts. ; define: expected only one expression for the function body, but found 3 extra parts. ; making a list from multiple values using the function list". ; the function list" is our fundamental constructor for list values. ; so list is both the name of the function and the name of the datatype.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents