CS 313 - Lecture 24
Slight change of pace: I want you to read parts of Chapters 2 and 3 of the text on ML posted in the usual place. See below for details on what to read.
The lecture will be in person, summarizing the material from the reading. I can also answer questions about the current homework.
The videos below are optional; the content will be covered in lecture.
Review and some new things
Review the following sections, which were mostly covered in the last lecture:
2.1 Expressions (new: string concatenation ^, boolean operators orelse, andalso)
2.2 Type Consistency, 2.2.1 Type Errors
2.2.2 Coercion between int and real (new: functions real, floor, ceil, round, trunc)
(Skip 2.2.3, 2.2.4)
2.3 Variables and Environment – skim, look at 2.3.3 to understand that val is not assignment
2.4.1, 2.4.2 Tuples
Optional video summarizing the new topics:
Lists
Read Sections 2.4.3, 2.4.4
Optionally take a look at 2.4.5, 2.4.6
Optional video summarizing lists:
Functions
Read Chapter 3, through page 56. You can skip sections 3.1.5, 3.1.6.
Optional video summarizing this material, and also introducing a few new functions:
Optional: Your question - you may also ask about the homework
If you submit a question, please do so before class on Wednesday by 10am
Quiz 24 due after class Wednesday by 10pm