Kryzeth Standard Library

utils.classes.unique_array

These functions are available when requiring this class. @table exports

Methods4

function M.new(...: StdLib.UniqueArray | string | string[]) -> new StdLib.UniqueArray

{unique_array.new}

Parameters
...StdLib.UniqueArray | string | string[]

} strings to initialize the unique array with

Returns
function M.set(tab) -> table | nil

set the class on an existing table

function M.dictionary(func: nil | function, ...: any[opt]) -> { [any]: any }

{uniquearray.makedictionary}

Parameters
funcnil | function

[opt] value, index are passed as the first two paramaters

...any[opt]

additional values to pass to the function

Returns
{ [any]: any }
function M.from_dictionary(dict) -> table | nil