aboutsummaryrefslogtreecommitdiffstats
path: root/util/iterators.lua
Commit message (Collapse)AuthorAgeFilesLines
* compat: Use table.pack (there since Lua 5.2) over our util.tableKim Alvefur2022-07-111-1/+1
| | | | | Added in d278a770eddc avoid having to deal with its absence in Lua 5.1. No longer needed when Lua 5.1 support is dropped.
* compat: Remove handling of Lua 5.1 location of 'unpack' functionKim Alvefur2022-07-111-1/+1
|
* util.iterators: Use pack from table.packKim Alvefur2018-12-081-3/+3
|
* util.iterators: Add sorted_pairs() methodMatthew Wild2018-09-211-0/+13
|
* util.iterators: Add join() method and testsMatthew Wild2018-05-181-0/+46
|
* util: Ignore some Lua 5.1 vs 5.2 compat things [luacheck]Kim Alvefur2017-11-101-2/+2
|
* util.iterators: Add iterator wrapper that works like select(n, ...) applied ↵Kim Alvefur2016-04-151-0/+9
| | | | to original iterator
* util.iterators: Normalize indentationKim Alvefur2016-04-131-12/+12
|
* util.iterators: Fix use of incorrect variable accidentally introduced in ↵Matthew Wild2016-03-211-2/+2
| | | | a9ef93bc81d9
* util.iterators: Variable renaming to avoid shadowing [luacheck]Matthew Wild2016-03-101-9/+9
|
* util.iterators: Return initial var from upstream iterator [luacheck]Matthew Wild2016-03-101-1/+1
|
* util.iterators: Don't replace var, as we should preserve var from the ↵Matthew Wild2016-03-101-1/+1
| | | | original iterator [luacheck]
* util.iterators: Use table.pack() on Lua 5.2Kim Alvefur2016-02-221-1/+1
|
* util.iterators: Localize unpack() in Lua 5.2 compatible wayKim Alvefur2016-02-221-1/+2
|
* Remove all trailing whitespaceFlorian Zeitz2013-08-091-5/+5
|
* util.iterators: Small fix for variable scoping issueMatthew Wild2013-05-171-1/+1
|
* util.iterators: Add filter() to run results through a filter functionMatthew Wild2013-05-171-1/+15
|
* util.iterators: Various fixes and improvements, primarily use pack() where ↵Matthew Wild2013-05-171-8/+12
| | | | it should be used.
* util.iterators: Add ripairs() (ipairs() in reverse) (thanks Maranda)Matthew Wild2013-04-121-0/+5
|
* util.iterators: Make a standard library (no longer injects into global ↵Matthew Wild2012-01-231-11/+14
| | | | namespace)
* util.iterators: it2table: Fix variable nameMatthew Wild2011-12-071-1/+1
|
* util.iterators: Add range(from, to)Matthew Wild2011-09-251-0/+7
|
* Monster whitespace commit (beware the whitespace monster).Waqas Hussain2010-10-161-2/+2
|
* util.iterators: Add skip() to skip the first n items of an iteratorMatthew Wild2010-07-201-0/+9
|
* Update copyright headers for 2010Matthew Wild2010-03-221-2/+2
|
* util.iterators: Add tail() iterator, to return the last n itemsMatthew Wild2009-08-101-0/+21
|
* util.iterators: Add head() iterator, to return the first n itemsMatthew Wild2009-08-101-0/+12
|
* Add copyright header to those files missing oneMatthew Wild2009-07-101-0/+8
|
* util.iterators: New iterators libraryMatthew Wild2009-03-251-0/+94