Commit Graph

32 Commits (bc3d454dd6f46292f08f4f724203de22a85800ca)

Author SHA1 Message Date
Kim Alvefur 129a24f6cc util.array: Add a __name field to metatable 8 years ago
Kim Alvefur 170f67dd58 util.array: Add method for filtering out duplicate values 9 years ago
Kim Alvefur 91262e2bc8 util.array: Add O(n) equality check metamethod 9 years ago
Kim Alvefur 3e09ed1226 util.array: Remove unused arguments [luacheck] 9 years ago
Kim Alvefur e484a136f2 util.array: Rename arguments to avoid name clash [luacheck] 9 years ago
Kim Alvefur f0cb003a5a util.array: Just use table.remove as array:pop() 10 years ago
Kim Alvefur dbdd844cf3 util.array: Fix minory style issues 10 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
Kim Alvefur b19f5a09a1 util.array: Add type() local 11 years ago
Kim Alvefur 087ed3fedc util.array: Improve array:reverse() and make it work as both method and non-mutating function 12 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Waqas Hussain def3fc6cd9 util.array: Wrap tostring() output in {} (otherwise empty arrays print as ""). 13 years ago
Matthew Wild a3c13a5074 util.array: Accept an iterator to the array constructor 14 years ago
Waqas Hussain a2f97afa0c util.array: Avoid globals. 14 years ago
Waqas Hussain c4e0cdb9f5 util.array: Make array:push() chainable. 14 years ago
Matthew Wild 6c51171c43 util.array: Expand some of the more basic methods to act more sensibly than their names suggested 14 years ago
Matthew Wild 0572f1ef24 util.array: Add pluck() method to pick a given property from each item 14 years ago
Matthew Wild 937263b7a5 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