Skip to content

BlackMATov/immut.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

immut.lua (Work In Progress)

Immutable and persistent data structures for Lua

lua5.1.5 lua5.2.4 lua5.3.6 lua5.4.8 lua5.5.0 luajit2.1 license

Introduction

Installation

immut.lua is a single-file pure Lua library and does not require any external dependencies. It is designed to work with Lua 5.1 and later, LuaJIT, and Luau (Roblox).

All you need to start using the library is the immut.lua source file. You can download it from the releases page or clone the repository and copy the file to your project.

If you are using LuaRocks, you can install the library using the following command:

luarocks install immut.lua

Quick Start

Coming soon...

Cheat Sheet

Dict

dict.new :: dict

dict.size :: dict -> integer
dict.empty :: dict -> boolean

dict.assoc :: dict, any, any -> dict
dict.dissoc :: dict, any -> dict

dict.lookup :: dict, any -> any
dict.contains :: dict, any -> boolean

List

list.new :: list

list.size :: list -> integer
list.empty :: list -> boolean

Stack

stack.new :: stack

stack.size :: stack -> integer
stack.empty :: stack -> boolean

Changelog

Coming soon...

License

immut.lua is licensed under the MIT License. For more details, see the LICENSE.md file in the repository.

About

Immutable and persistent data structures for Lua

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages