knowledge/programming/functional-programming.md
Lukas Vacula b307e05e52 init
2023-11-28 10:20:03 -05:00

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