Code 301: Class 09 - Functional Programming
- Pure Function returns a deterministic result and does not cause any observable side effects
- Any function that uses a random number generator cannot be pure
- Mutability is discouraged in functional programming
- If a function consistently yields the same result for the same input it is referentially transparent
- Filter filter by an attribute
- Map transforms a collection
- Reduce receive a function and a collection return a value by combining items
- Hash Function used to map a given key to a location in the hash table
- This article offers a few examples of how code can be refactored to make it more readable and easier to maintain
Return to reading-notes Deployed Site
Return to reading-notes Mark Down