aboutsummaryrefslogtreecommitdiffstats
path: root/util/set.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.set: Rename method argument to avoid name clash [luacheck]Matthew Wild2015-05-061-3/+3
|
* util.set: Add luacheck annotation for methods not referencing 'self'Matthew Wild2015-05-061-0/+3
|
* util.set: Remove unnecessary local declaration, arguments are already locals ↵Matthew Wild2015-05-061-1/+1
| | | | [luacheck]
* Merge 0.9->0.10Matthew Wild2013-11-101-1/+1
|\
| * util.set: Remove unused variableMatthew Wild2013-11-101-1/+1
| |
* | util.set: :items() now returns an iterator instead of the underlying table. ↵Matthew Wild2013-09-031-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->trunkMatthew Wild2013-09-031-2/+2
|\|
| * util.set: Fix :include() and :exclude() methods to iterate the input set ↵Matthew Wild2013-09-021-2/+2
| | | | | | | | correctly
* | Remove all trailing whitespaceFlorian Zeitz2013-08-091-18/+18
|/
* util.set: Change '/' operator from filter to map+filter (nil to drop from ↵Matthew Wild2012-05-241-2/+3
| | | | set, false is a valid item). No code found which depends on current behaviour.
* util.set: Accept nil to add_list()Matthew Wild2012-01-221-2/+4
|
* Monster whitespace commit (beware the whitespace monster).Waqas Hussain2010-10-161-1/+1
|
* Update copyright headers for 2010Matthew Wild2010-03-221-2/+2
|
* Add copyright header to those files missing oneMatthew Wild2009-07-101-0/+8
|
* util.set: Add set.xor() to get a set consisting of items not in both setsMatthew Wild2009-04-221-0/+4
|
* util.set: Add set:empty() to discover if the set is the empty setMatthew Wild2009-04-221-0/+4
|
* util.set: Add metatable to sets to allow +, -, /, ==, tostring and to double ↵Matthew Wild2009-04-221-4/+54
| | | | as iterators
* util.set: Rename private items container, optimise set.difference() and add ↵Matthew Wild2009-03-231-9/+18
| | | | set.intersection()
* util.set: Fix to make constructor work, and functions defined correctlyMatthew Wild2009-03-221-8/+14
|
* util.set: New util libraryMatthew Wild2009-03-221-0/+75