Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.set: Add a serialization preparation metamethod | Kim Alvefur | 2023-03-26 | 1 | -0/+9 |
| | | | | | | Enables util.serialization to turn Sets into a representation that can be deserialized with an environment trick, i.e. `set{"a","b"}`. Also useful for debug purposes. | ||||
* | util.set: Add :contains_set() method | Matthew Wild | 2021-09-12 | 1 | -0/+9 |
| | |||||
* | Merge 0.11->trunk | Matthew Wild | 2021-05-13 | 1 | -0/+6 |
|\ | |||||
| * | util.set: Add is_set() to test if an object is a set | Matthew Wild | 2021-05-10 | 1 | -2/+8 |
| | | |||||
* | | util.set: Fix equality metamethod in Lua 5.3 | Kim Alvefur | 2020-01-15 | 1 | -0/+6 |
|/ | |||||
* | util.set: Add freeze metamethod | Kim Alvefur | 2018-10-12 | 1 | -0/+8 |
| | |||||
* | vairious: Add annotation when an empty environment is set [luacheck] | Kim Alvefur | 2018-02-28 | 1 | -0/+1 |
| | |||||
* | util.set: Add a __name field to metatable | Kim Alvefur | 2018-02-16 | 1 | -1/+1 |
| | |||||
* | util.*: Remove use of module() function, make all module functions local and ↵ | Kim Alvefur | 2015-02-21 | 1 | -47/+54 |
| | | | | return them in a table at the end | ||||
* | util.set: Rename method argument to avoid name clash [luacheck] | Matthew Wild | 2015-05-06 | 1 | -3/+3 |
| | |||||
* | util.set: Add luacheck annotation for methods not referencing 'self' | Matthew Wild | 2015-05-06 | 1 | -0/+3 |
| | |||||
* | util.set: Remove unnecessary local declaration, arguments are already locals ↵ | Matthew Wild | 2015-05-06 | 1 | -1/+1 |
| | | | | [luacheck] | ||||
* | Merge 0.9->0.10 | Matthew Wild | 2013-11-10 | 1 | -1/+1 |
|\ | |||||
| * | util.set: Remove unused variable | Matthew Wild | 2013-11-10 | 1 | -1/+1 |
| | | |||||
* | | util.set: :items() now returns an iterator instead of the underlying table. ↵ | Matthew Wild | 2013-09-03 | 1 | -1/+1 |
| | | | | | | | | This is much more efficient than 'for item in set' (which still works for now). Current access to _items is generally done directly, this may change. | ||||
* | | Merge 0.9->trunk | Matthew Wild | 2013-09-03 | 1 | -2/+2 |
|\| | |||||
| * | util.set: Fix :include() and :exclude() methods to iterate the input set ↵ | Matthew Wild | 2013-09-02 | 1 | -2/+2 |
| | | | | | | | | correctly | ||||
* | | Remove all trailing whitespace | Florian Zeitz | 2013-08-09 | 1 | -18/+18 |
|/ | |||||
* | util.set: Change '/' operator from filter to map+filter (nil to drop from ↵ | Matthew Wild | 2012-05-24 | 1 | -2/+3 |
| | | | | set, false is a valid item). No code found which depends on current behaviour. | ||||
* | util.set: Accept nil to add_list() | Matthew Wild | 2012-01-22 | 1 | -2/+4 |
| | |||||
* | Monster whitespace commit (beware the whitespace monster). | Waqas Hussain | 2010-10-16 | 1 | -1/+1 |
| | |||||
* | Update copyright headers for 2010 | Matthew Wild | 2010-03-22 | 1 | -2/+2 |
| | |||||
* | Add copyright header to those files missing one | Matthew Wild | 2009-07-10 | 1 | -0/+8 |
| | |||||
* | util.set: Add set.xor() to get a set consisting of items not in both sets | Matthew Wild | 2009-04-22 | 1 | -0/+4 |
| | |||||
* | util.set: Add set:empty() to discover if the set is the empty set | Matthew Wild | 2009-04-22 | 1 | -0/+4 |
| | |||||
* | util.set: Add metatable to sets to allow +, -, /, ==, tostring and to double ↵ | Matthew Wild | 2009-04-22 | 1 | -4/+54 |
| | | | | as iterators | ||||
* | util.set: Rename private items container, optimise set.difference() and add ↵ | Matthew Wild | 2009-03-23 | 1 | -9/+18 |
| | | | | set.intersection() | ||||
* | util.set: Fix to make constructor work, and functions defined correctly | Matthew Wild | 2009-03-22 | 1 | -8/+14 |
| | |||||
* | util.set: New util library | Matthew Wild | 2009-03-22 | 1 | -0/+75 |