On this page
paweljarosz/lua-immutable/immutable.immutable
Runtime immutable Lua table implementation
- GitHub: paweljarosz/lua-immutable — pinned to
2fe3aed- Pick a release from paweljarosz/lua-immutable releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as immutable from "immutable.immutable"
- Pick a release from paweljarosz/lua-immutable releases and add its Source code (zip) URL (or a packaged
Functions
make(original_table: T): Readonly<T>
Parameters
original_table:T
Returns
Readonly<T>
is_immutable(table_to_check: table): boolean
Parameters
table_to_check:table
Returns
boolean