Commit Graph

26 Commits (c19a8ef9ff319d31991e1dd8a23bdd9efb9389bb)

Author SHA1 Message Date
Matthew Wild 5947c028a9 util.iterators: Add sorted_pairs() method 7 years ago
Matthew Wild 1824ca74b3 util.iterators: Add join() method and tests 8 years ago
Kim Alvefur 0251f34305 util: Ignore some Lua 5.1 vs 5.2 compat things [luacheck] 8 years ago
Kim Alvefur 8c8867a14e util.iterators: Add iterator wrapper that works like select(n, ...) applied to original iterator 10 years ago
Kim Alvefur c8b2b00c92 util.iterators: Normalize indentation 10 years ago
Matthew Wild 021411faa6 util.iterators: Fix use of incorrect variable accidentally introduced in a9ef93bc81d9 10 years ago
Matthew Wild 0cae74cbb2 util.iterators: Variable renaming to avoid shadowing [luacheck] 10 years ago
Matthew Wild a755aae795 util.iterators: Return initial var from upstream iterator [luacheck] 10 years ago
Matthew Wild 76c4635d44 util.iterators: Don't replace var, as we should preserve var from the original iterator [luacheck] 10 years ago
Kim Alvefur f22342b075 util.iterators: Use table.pack() on Lua 5.2 10 years ago
Kim Alvefur bf9e8e1406 util.iterators: Localize unpack() in Lua 5.2 compatible way 10 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Matthew Wild f421282986 util.iterators: Small fix for variable scoping issue 13 years ago
Matthew Wild 04ec0856a8 util.iterators: Add filter() to run results through a filter function 13 years ago
Matthew Wild 0672998fb8 util.iterators: Various fixes and improvements, primarily use pack() where it should be used. 13 years ago
Matthew Wild f9082b6ef0 util.iterators: Add ripairs() (ipairs() in reverse) (thanks Maranda) 13 years ago
Matthew Wild a37f067c90 util.iterators: Make a standard library (no longer injects into global namespace) 14 years ago
Matthew Wild ab71edddf0 util.iterators: it2table: Fix variable name 14 years ago
Matthew Wild 022ff52b65 util.iterators: Add range(from, to) 15 years ago
Waqas Hussain b7e51a203d Monster whitespace commit (beware the whitespace monster). 15 years ago
Matthew Wild 9a9e9b1c1a util.iterators: Add skip() to skip the first n items of an iterator 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild e58d6d5d62 util.iterators: Add tail() iterator, to return the last n items 17 years ago
Matthew Wild bcb552cdc4 util.iterators: Add head() iterator, to return the first n items 17 years ago
Matthew Wild e45610ce6e Add copyright header to those files missing one 17 years ago
Matthew Wild 996a74ba94 util.iterators: New iterators library 17 years ago