/cryo

A collection of methods for working with immutable data in a functional way for Luau. This is a read-only mirror.

Primary LanguageLuaMIT LicenseMIT

Cryo

GitHub CI Coverage Status Documentation
A collection of methods for working with immutable data in a functional way for Roblox Lua.
 

Cryo is a library that helps you write more terse code that deals with immutable data. It includes traditional FP list primitives like map, filter, and foldLeft, as well as tools inspired by JavaScript like joining dictionaries.

Cryo works well to make Rodux reducers cleaner!

Installation

This project can be specified as a dependency via rotriever:

Cryo = "github.com/roblox/cryo-internal@1.0.3"

Documentation

Documentation for Cryo is available on the official documentation website.

License

Licensed under the MIT license (LICENSE.txt or http://opensource.org/licenses/MIT).

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MIT license, shall be licensed as above, without any additional terms or conditions.

Take a look at the contributing guide for guidelines on how to contribute to Cryo.