Commit Graph

25 Commits (020cd46f0341663d71ebdbd02f67032ddcb4a677)

Author SHA1 Message Date
Kim Alvefur f4af8004e3 util.set: Fix equality metamethod in Lua 5.3 6 years ago
Kim Alvefur 1ab9729aac util.set: Add freeze metamethod 7 years ago
Kim Alvefur 43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 8 years ago
Kim Alvefur 6013ca9e24 util.set: Add a __name field to metatable 8 years ago
Matthew Wild a83b428dd8 util.set: Rename method argument to avoid name clash [luacheck] 11 years ago
Matthew Wild b496bcc379 util.set: Add luacheck annotation for methods not referencing 'self' 11 years ago
Matthew Wild f1085b6ceb util.set: Remove unnecessary local declaration, arguments are already locals [luacheck] 11 years ago
Kim Alvefur eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 11 years ago
Matthew Wild 948f787196 util.set: Remove unused variable 12 years ago
Matthew Wild bd8755411c util.set: :items() now returns an iterator instead of the underlying table. 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. 13 years ago
Matthew Wild cb75840227 util.set: Fix :include() and :exclude() methods to iterate the input set correctly 13 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Matthew Wild ea48b240ef util.set: Change '/' operator from filter to map+filter (nil to drop from set, false is a valid item). No code found which depends on current behaviour. 14 years ago
Matthew Wild f7528a035b util.set: Accept nil to add_list() 14 years ago
Waqas Hussain b7e51a203d Monster whitespace commit (beware the whitespace monster). 15 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild e45610ce6e Add copyright header to those files missing one 17 years ago
Matthew Wild 0d98ee54b5 util.set: Add set.xor() to get a set consisting of items not in both sets 17 years ago
Matthew Wild 901af1535f util.set: Add set:empty() to discover if the set is the empty set 17 years ago
Matthew Wild 34a4b98cf6 util.set: Add metatable to sets to allow +, -, /, ==, tostring and to double as iterators 17 years ago
Matthew Wild db2a808e14 util.set: Rename private items container, optimise set.difference() and add set.intersection() 17 years ago
Matthew Wild 0cb055053f util.set: Fix to make constructor work, and functions defined correctly 17 years ago
Matthew Wild 7f87706ee4 util.set: New util library 17 years ago