CPS 530 Lecture Notes - Lecture 1: Master Sergeant, Init, Type System

122 views17 pages

Document Summary

6: the answer for this is on the solution guide. 13: we are the world for today. 23 let me elix this (is that the verb for elixir-ing something?) functional, syntactically, defining literals, overloading. control structures. Smalltalk: extensibility -> functional, syntactically, defining literals, overloading. Rust: extensibility -> functional, syntactically, defining literals, overloading. Smalltalk: extensibility -> functional, syntactically, defining literals, overloading. (all of his slides say this for each language wtf) Haskell: add :: integer -> [integer] -> integer add x y = foldr (+) x (map (^2) y) fold:: integer -> integer fold x = x. Fold function pretty useless, but doing it as described in the question. List. foldr([2, 3, 4], 5, fn(x, acc) -> x*x + acc end)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers