List4
List4 is an open-source library that provides immutable lists for functional programming. The project emphasizes four core operations—map, filter, reduce, and zip—as a basis for concise, chainable data processing without mutating input data. Implementations exist for several languages, including JavaScript, Python, Java, and Rust, aiming for a consistent API across different ecosystems.
Data structure and API: List4 uses an immutable singly linked list with structural sharing, allowing new lists
Usage example: List4.of(1, 2, 3, 4).map(n => n * 2).filter(n => n > 4).toArray() shows a typical pipeline. The library
History and reception: Originating in the late 2010s as a compact portable abstraction, List4 has developed
See also: Immutable data structure, Persistent data structure, Functional programming, Linked list.