WikiWIKI Graph
Wiki
Reference handbooks — evergreen content updated continuously
Browse Documents
8 documentsPatterns
Documents
- FoldReduce a collection or recursive structure to a value by repeatedly combining an accumulator with the next element.Patternspath:Patterns/Functional
- Function CompositionConnect small functions so that one function's output becomes the next function's input.Patternspath:Patterns/Functional
- FunctorApply a function to the values inside a structure through map, preserving the surrounding structure.Patternspath:Patterns/Functional
- MonadUse bind to connect computations that carry a context, such as absence, failure, multiple results, or asynchronous completion.Patternspath:Patterns/Functional
- MonoidCombine partial results with an associative operation and an identity, obtaining the same total regardless of grouping.Patternspath:Patterns/Functional
- Option TypeRepresent possible absence in the return type instead of a null convention, requiring callers to handle both cases.Patternspath:Patterns/Functional
- Partial Application and CurryingFix some arguments to produce a function for the rest, and distinguish that operation from converting a function into a chain of single-argument functions.Patternspath:Patterns/Functional
- Result TypeReturn either a success value or a failure reason, making failure explicit data rather than relying on exceptions.Patternspath:Patterns/Functional
Recently Updated
- C++ IdiomsC++ Idioms
- Mediator PatternCollect interaction rules in a mediator so collaborating objects do not depend directly on each other.
- Memento PatternKeep an opaque state snapshot so the original object can restore itself without exposing its internals to history management.
- Flyweight PatternShare repeated immutable state while keeping per-use data such as position separate.
- Composite PatternTreat an individual item and a group of items through the same component contract.
- Interpreter PatternRepresent a small language as expression objects that evaluate their own meaning.
- Visitor PatternAdd operations as visitor objects when the kinds of elements in a structure are relatively stable.
- Chain of Responsibility PatternPass a request along handlers until one accepts it, with an explicit unhandled result.