CPS 530 Lecture Notes - Lecture 1: Master Sergeant, Init, Type System
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)