1521:cee81a5ae949 | 1522:569d58d21612 |
---|---|
1 -- Prosody IM | |
2 -- Copyright (C) 2008-2009 Matthew Wild | |
3 -- Copyright (C) 2008-2009 Waqas Hussain | |
4 -- | |
5 -- This project is MIT/X11 licensed. Please see the | |
6 -- COPYING file in the source package for more information. | |
7 -- | |
8 | |
1 --[[ Iterators ]]-- | 9 --[[ Iterators ]]-- |
2 | 10 |
3 -- Reverse an iterator | 11 -- Reverse an iterator |
4 function reverse(f, s, var) | 12 function reverse(f, s, var) |
5 local results = {}; | 13 local results = {}; |