Module cityrp.table

Generic Table functions.

Module Overview

Functions

cityrp.table.HasValue(tab, value) Check if a table has a value in itself, or any child tables.

Functions

cityrp.table.HasValue(tab, value)
Check if a table has a value in itself, or any child tables. This function is O(N^x) where X is the depth of nested tables. Do not use if it can be avoided.

Parameters:

  • tab tab The table to search.
  • value The value to check for.

Returns:

    boolean If the value is in the table.