COMPSCI 61A Lecture Notes - Lecture 8: Haskell Curry, Higher-Order Function, Currying
zogo39484755 and 6 others unlocked
22
COMPSCI 61A Full Course Notes
Verified Note
22 documents
Document Summary
Homework party monday 9/12 6:30pm-8:30pm in 247 cory hall. Midterm 1 thursday 9/15 8pm-10:10pm in various locations. Will be receiving an email wednesday with your location. Entries in the completely optional hog contest due monday 9/19. Extra lecture on decisions wednesday 9/14 5-6:30pm in 2060 vlsb. No regular lecture this wednesday 9/14 & no discussion thursday 9/15 or friday. Functional abstraction: giving a name to some computational process and then referring to that process as a whole without worrying about its implementation. We don"t need to know about the implementation of square(x) in the following example: Names typically don"t matter for correctness but they matter a lot for composition. Names should convey the meaning or purpose of the values to which they are bound. The type of value bound to the name is best documented in a function"s docstring. Function names typically convey their e ect, their behavior, or the value returned.