-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
if var == nil then break; end
t_insert(results, 1, ret);
end
if var == nil then break; end
t_insert(results, 1, ret);
end
-- Then return our reverse one
local i,max = 0, #results;
return function (results)
-- Then return our reverse one
local i,max = 0, #results;
return function (results)
-- Given an iterator, iterate only over unique items
function it.unique(f, s, var)
local set = {};
-- Given an iterator, iterate only over unique items
function it.unique(f, s, var)
local set = {};
--[[ Return the number of items an iterator returns ]]--
function it.count(f, s, var)
local x = 0;
--[[ Return the number of items an iterator returns ]]--
function it.count(f, s, var)
local x = 0;