Skip to content

Releases: EvandroLG/Hash.lua

Hash.lua v1.1.2

14 Jan 18:36

Choose a tag to compare

What's new?

Hash.lua is a library with useful methods to handle Lua's table when it's working like a Hashtable.

  • Improve performance of the Hash.is_circular method

Hash.lua v1.1.1

27 Sep 09:31

Choose a tag to compare

What's new?

Hash.lua is a library with useful methods to handle Lua's table when it's working like a Hashtable.

  • Added new methods:

    • Hash.omit(object:table, keys_or_callback:table|function):table
      Returns a copy of the object passed by parameter omitting the keys decided in the second parameter.

    • Hash.find(object:table, callback:function):any
      Returns the value of the first item that satisfies the provided testing function.

    • Hash.invert(object:table):table
      Creates a new table composed of the inverted keys and values of the table passed by parameter.

    • Hash.is_cyclic(object:table):boolean
      Checks if table has circular references

  • Created a Doc page (https://evandrolg.github.io/Hash.lua/)