15 lines
463 B
Markdown
15 lines
463 B
Markdown
# 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 list
|
|
- `map` : turn a list of objects into a list of a certain attribute of all of the objects
|
|
- `flatmap` : map an object, then flatten the resulting list of lists
|
|
- `filter` : filter a list of objects by an attribute
|
|
|
|
|
|
## Sources
|
|
- Grokking Functional Programming by Michal Plachta
|