Commit Graph

23 Commits (bc3d454dd6f46292f08f4f724203de22a85800ca)

Author SHA1 Message Date
Kim Alvefur 146acdbd33 vairious: Add annotation when an empty environment is set [luacheck] 8 years ago
Kim Alvefur 10f8cb0c57 util.set: Add a __name field to metatable 8 years ago
Matthew Wild de51b150af util.set: Rename method argument to avoid name clash [luacheck] 11 years ago
Matthew Wild d16104ebd4 util.set: Add luacheck annotation for methods not referencing 'self' 11 years ago
Matthew Wild 13a0eeca1a util.set: Remove unnecessary local declaration, arguments are already locals [luacheck] 11 years ago
Kim Alvefur 3015aac8bc 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 1f85b386d4 util.set: Remove unused variable 12 years ago
Matthew Wild 01112d1d86 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 beb2881c21 util.set: Fix :include() and :exclude() methods to iterate the input set correctly 13 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Matthew Wild 8410f318d2 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 72f03580e8 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