🦀 Functional Rust
🧮

Functional Concepts

Learn FP patterns through side-by-side examples.

Rust has deep functional roots. This path shows you the patterns — ADTs, higher-order functions, monadic error handling, iterators as lazy sequences — through real code comparisons with OCaml. No OCaml knowledge needed; it's just a lens that makes the concepts sharper.

👤 Rust developers curious about FP 📚 28 examples
Start Path →
1 #926 003: Pattern Matching Intermediate 2 #927 004: Option and Result Intermediate 3 #052 052: Function Composition Foundations 4 #005 Currying and Partial Application Intermediate 5 #900 256: Chaining Iterators with chain() Foundations 6 #903 259: Flattening with flat_map() Intermediate 7 #504 504: Returning Closures from Functions Advanced 8 #502 502: Fn, FnMut, FnOnce Hierarchy Advanced 9 #880 086: Custom Iterators Intermediate 10 #734 734: Typestate Pattern: Encode State in the Type Expert 11 #738 738: PhantomData: Phantom Types and Type Markers Expert 12 #381 381: Blanket Implementations Advanced 13 #382 382: Associated Types vs Type Parameters Advanced 14 #383 383: Simulating Higher-Kinded Types with GATs Expert 15 #599 599: Free Monad Interpretation Expert 16 #598 598: Finally Tagless Style Expert 17 #596 596: Church Encoding in Rust Expert 18 #603 603: Functor Laws in Practice Master 19 #604 604: Monad Laws — Rust Deep Dive Master 20 #608 608: Catamorphism (Fold) Generalized Master 21 #609 609: Anamorphism (Unfold) Generalized Master 22 #616 616: Lens Pattern — Composable Getters and Setters Master 23 #617 617: Prism Pattern — Fallible Access for Enum Variants Master 24 #606 606: Natural Transformations in Rust Master 25 #235 235: Yoneda Lemma Expert 26 #248 248: Kan Extensions Master 27 #250 250: Grand Synthesis Expert 28 #623 623: Grand Tour — Functional Programming Patterns in Production Rust Master