meta data for this page
Basics/TableUtil.lua
This class provides handy utils functions that simplify handling of large tables.
TableUtil.deepCopy(tbl)
Provides a deep copy of tbl
(table). This means that neither tbl
nor any of its subtables will share a reference with the returned result.
function TableUtil.deepCopy(tbl)
TableUtil.deepEqual(a, b)
Recursively checks the table and all of its subtables and returns true
if and only if all of the table's fields and subtable's fields are exactly equal.
Note that tables are not compared by reference but by all of their values, i.e. if you create a deepCopy using TableUtil.deepCopy()
, then this function will always return true when applied with the deep copy and the original table as arguments.
function TableUtil.deepEqual(a, b)
Copyright
All contents of this page may be used for modding use for Winter Resort Simulator - Season 2 only. Any use exceeding this regulation is not permitted.
Copyright (C) HR Innoways, 2021. All Rights Reserved.