MLStyle.jl¶
If I have a chance to rename it, I’d change it to “FunctionalProgramming.jl”.
MLStyle is a Julia library which provides pattern matching and other infrastructures for functional programming.
It is also generally considered as a library that provides efficient, easy-to-use, advanced and consistent facilities for metaprogramming.
Introduction¶
Syntax¶
- Algebraic Data Types
- Pattern Matching
- Literal Patterns
- Capturing Patterns
- Type Patterns
if
patternsGuardBy
patterns- And-Patterns
- Destructuring Tuples, Arrays, and Dictionaries with Pattern Matching
- Deconstruction of Custom Composite Data
- Range Patterns
- Reference Patterns
- Macro Call Patterns
- Custom Patterns
- Or Patterns
- Advanced Type Patterns
- Active Patterns
- Expr Patterns
- Julia Code as Expr Patterns
- Advanced: Do-Patterns & Many-Patterns
- Advanced: Let Patterns
- The Switch Statements
- Records
- When Destructuring
- Pattern Functions