Introduction
Welcome to the λLoop documentation!
λLoop provides a fluent and expressive way to create loops in Java, moving away from the traditional, more verbose loop constructs. This library aims to make your loop-related code more readable, concise, and maintainable.
Why λLoop?
Traditional Java loops, while powerful, can sometimes lead to verbose code, especially when dealing with complex iteration patterns, early exits, or specific data structures. λLoop addresses these challenges by offering a modern, lambda-friendly API that simplifies common looping scenarios.
Key Features
- Fluent API: Chain methods to build your loops intuitively.
- Unified Iteration: Use the same consistent pattern to loop over all supported sequences (arrays, collections, strings, etc.), instead of different ways to iterate over them.
- Numeric Loops: Iterate over ranges of integers with customizable steps.
- Collection Loops: Seamlessly loop over arrays, Lists, Sets, and other Iterables.
- Map Loops: Iterate over map entries, keys, or values with ease.
- Break, Continue and Return: Easily break out of loops and return a value, as well as skipping to the next iteration, even from within lambda expressions.
This documentation will guide you through the various features of λLoop, providing examples and comparisons with traditional Java approaches. Let’s get started!