463 B
463 B
Functional Programming
Common and Useful Functions
(syntax is scala, search for Rust/Python equivalents)
Lists
flatten: turn a list of lists into a singular, flat listmap: turn a list of objects into a list of a certain attribute of all of the objectsflatmap: map an object, then flatten the resulting list of listsfilter: filter a list of objects by an attribute
Sources
- Grokking Functional Programming by Michal Plachta