Linden
361ce6cca6
chore(imports/table): some types and annotations
2023-05-09 09:04:45 +10:00
DokaDoka
fe58a4893f
feat(table): limited merge function
...
adds number values and overrides everything else
2023-01-16 02:57:03 +11:00
Linden
26538b8148
refactor(imports): assign modules directly to lib namespace
...
Mostly a change for improved intellisense with sumneko lua.
Includes some type fixes and deprecation notices.
2022-09-14 01:20:50 +10:00
Linden
e9f64c53e6
feat(table): add recursive clone function
...
table.clone creates a soft copy of an existing table (any tables inside the table will still be references).
This sets up a basic loop to clone any tables within a table and create deep copies.
2021-11-22 08:55:43 +11:00
Linden
7c41ac5d6e
refactor(table): revert to old match function
...
Going to need some work to accurately compare some table types, but this is better for the intended purpose.
2021-11-14 03:43:06 +11:00
Linden
6aede19f4e
fix(table): correctly check if table contains value for non-tables
...
Only strings were allowed through this initial check, but we want non-table values to check if v = value.
2021-11-14 01:42:36 +11:00
Linden
5a925695bc
refactor(table): change match to matches
2021-11-12 10:26:49 +11:00
Linden
901cb381b4
feat(table): add functions to the standard table lib
...
Can overwrite the default table functions with `table = import 'table'`, adding functions to check if value(s) exist or match a table.
2021-11-12 10:16:16 +11:00