module util
General utilities
index
functions
-
opairs(t, order_fn, only_strings)
– ordered pairs(t). -
ancestor(klass)
– find the ancestor of a MoonScript class -
is_plain_table(val)
– check whether a table is a ‘plain’ table -
deep_copy(val)
– recursively copy a value -
deep_map(val, fn)
– map leaf values in a table -
deep_iter(table)
– yield all leaf values in a table
details
functions
-
– ordered pairs(t).
parameters:
- table to iterate
- fn for table.sort
- whether to exclude non-strings from iteration
-
– find the ancestor of a MoonScript class
parameters:
-
– check whether a table is a ‘plain’ table
parameters:
-
– recursively copy a value
parameters:
-
– map leaf values in a table
parameters:
-
– yield all leaf values in a table
parameters: