Commit Graph

31 Commits (47c821cf549c8ea4645190a8f4bb18b7a2eaee2b)

Author SHA1 Message Date
Kim Alvefur 72018f7be7 util.array: Add method for filtering out duplicate values 9 years ago
Kim Alvefur 0bf98e614f util.array: Add O(n) equality check metamethod 9 years ago
Kim Alvefur 71d4c99a5d util.array: Remove unused arguments [luacheck] 9 years ago
Kim Alvefur 53bcabeef5 util.array: Rename arguments to avoid name clash [luacheck] 9 years ago
Kim Alvefur f4d50275c9 util.array: Just use table.remove as array:pop() 10 years ago
Kim Alvefur 1951ac9ea1 util.array: Fix minory style issues 10 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
Kim Alvefur e9fa1d1db3 util.array: Add type() local 11 years ago
Kim Alvefur 04699a3aa4 util.array: Improve array:reverse() and make it work as both method and non-mutating function 12 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Waqas Hussain 11684a2d6c util.array: Wrap tostring() output in {} (otherwise empty arrays print as ""). 13 years ago
Matthew Wild 65fafa7b63 util.array: Accept an iterator to the array constructor 14 years ago
Waqas Hussain 5a64ace81c util.array: Avoid globals. 14 years ago
Waqas Hussain 5cc76d9794 util.array: Make array:push() chainable. 14 years ago
Matthew Wild f1f40bc3ca util.array: Expand some of the more basic methods to act more sensibly than their names suggested 14 years ago
Matthew Wild f1f5f74ad3 util.array: Add pluck() method to pick a given property from each item 14 years ago
Matthew Wild 63d6d1a502 util.array: Fix array.collect() for iterators that expect initial value of var to be preserved 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 67ec7d93f0 util.array: Oh no it isn't! 16 years ago
Matthew Wild 73a4154d03 util.array: Small logic fix for array:filter() 16 years ago
Matthew Wild 04d29dacbc util.array: Fix for array:filter() (in-place filtering) 16 years ago
Matthew Wild 59c937eb43 util.array: Fix for array:filter() (in-place filtering) 16 years ago
Matthew Wild 7acd1cae89 util.array: Per-array methods now always mutate the array, array.* return a mutated copy, and most methods (e.g. sort) now return the array 16 years ago
Matthew Wild 4512d4c8ce util.array: Per-array methods now always mutate the array, array.* return a mutated copy, and most methods (e.g. sort) now return the array 16 years ago
Matthew Wild e45610ce6e Add copyright header to those files missing one 17 years ago
Matthew Wild 7d05900c4b util.array: Add support for + operator to create a new array from two arrays joined 17 years ago
Matthew Wild 38f157315a util.array: Make array:reverse() and array:shuffle() return the array to allow chaining 17 years ago
Matthew Wild 72331edf3e util.array: Add array:append() method, to append a new array to an existing one 17 years ago
Matthew Wild 1ce9466289 util.array: Add array.collect() to collect results from iterators into an array, and use module() to correctly set the module name 17 years ago
Matthew Wild cb2b5ec86f util.array: Add :reverse() method 17 years ago
Matthew Wild 3ab003a514 util.array: Expose array.* functions, to be used for unwrapped arrays 17 years ago
Matthew Wild 7b1eacf880 util.array: New array library 17 years ago