Luarrow – True pipeline operators and elegant Haskell-style function compositio
8 days ago
- #functional-programming
- #pipeline-operator
- #lua
- Introduces a true pipeline operator for Lua inspired by Haskell, OCaml, Julia, F#, PHP, Elixir, and Elm.
- Uses Lua's operator overloading (%, *, ^) to enable elegant function composition and application.
- Supports two styles: Pipeline-Style (left-to-right data flow) and Haskell-Style (right-to-left composition).
- Provides zero-dependency, pure Lua implementation with excellent performance, especially in LuaJIT.
- Enables cleaner, more expressive code with readable functional pipelines and elegant composition.
- Includes practical examples and API documentation for easy adoption and use.
- Encourages point-free style programming, reducing code verbosity and improving readability.
- Offers quick references for both Pipeline-Style and Haskell-Style syntax.
- Compatible with Lua's ecosystem, including Neovim, with detailed performance benchmarks available.
- Open-source project with installation via LuaRocks or direct cloning from GitHub.