Commit Graph

30 Commits (master)

Author SHA1 Message Date
Matthew Wild 08b49654d9 util.iterators: join: Work even with only a single iterator in the chain 3 years ago
Kim Alvefur f8e73eba98 compat: Use table.pack (there since Lua 5.2) over our util.table 4 years ago
Kim Alvefur 5251c9b686 compat: Remove handling of Lua 5.1 location of 'unpack' function 4 years ago
Matthew Wild c65893de6e util.iterators: Add sorted_pairs() method 7 years ago
Matthew Wild 13eab871ba util.iterators: Add join() method and tests 8 years ago
Kim Alvefur c904d1e28d util: Ignore some Lua 5.1 vs 5.2 compat things [luacheck] 8 years ago
Kim Alvefur 3f87977ddb util.iterators: Add iterator wrapper that works like select(n, ...) applied to original iterator 10 years ago
Kim Alvefur 4bacbb7d71 util.iterators: Normalize indentation 10 years ago
Matthew Wild 6873a62f1e util.iterators: Fix use of incorrect variable accidentally introduced in a9ef93bc81d9 10 years ago
Matthew Wild cae49b6891 util.iterators: Variable renaming to avoid shadowing [luacheck] 10 years ago
Matthew Wild e2f3356e24 util.iterators: Return initial var from upstream iterator [luacheck] 10 years ago
Matthew Wild e5d07c158f util.iterators: Don't replace var, as we should preserve var from the original iterator [luacheck] 10 years ago
Kim Alvefur 11ebf4f1dc util.iterators: Use table.pack() on Lua 5.2 10 years ago
Kim Alvefur a2c0f6d645 util.iterators: Localize unpack() in Lua 5.2 compatible way 10 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Matthew Wild f74284d013 util.iterators: Small fix for variable scoping issue 13 years ago
Matthew Wild d7f5ff243e util.iterators: Add filter() to run results through a filter function 13 years ago
Matthew Wild 61ccc4463d util.iterators: Various fixes and improvements, primarily use pack() where it should be used. 13 years ago
Matthew Wild 8d41687872 util.iterators: Add ripairs() (ipairs() in reverse) (thanks Maranda) 13 years ago
Kim Alvefur 76d4ce39f5 util.iterators: Use pack from table.pack 7 years ago
Matthew Wild 92cd4ec3f7 util.iterators: Make a standard library (no longer injects into global namespace) 14 years ago
Matthew Wild 0356027c05 util.iterators: it2table: Fix variable name 14 years ago
Matthew Wild 40a31d93d6 util.iterators: Add range(from, to) 14 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