lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tuesday, July 19, 2011 01:34:47 AM Mason Larobina wrote:
> On 19 July 2011 09:07, Steve Litt <slitt@troubleshooters.com> wrote:
> > 5) Enable a simple, C like continue statement. No gotos, no
> > labels, no choices of where it continues at, just a way to go to
> > the top of the loop and continue. My view is it's no more
> > non-modular than break. This is a small priority to me, although
> > certainly bigger than those mentioned in the original file. This
> > is not a big deal -- I already developed a general purpose
> > iterator that renders it unnecessary, but it *would* be a nice
> > addition -- just saying.
> 
> Could you expand on this point a little further? Are you talking
> about something similar to the filter[1] function in python?
> 
> [1] http://docs.python.org/library/functions.html#filter

I guess you're asking if my iterator is like Python's filter (of which 
I'm not familiar). Sounds kinda similar. Here's my iterator:

http://www.troubleshooters.com/codecorn/lua/luaclosures.htm#_A_Practical_Line_Skipper_Iterator

SteveT

Steve Litt
Author: The Key to Everyday Excellence
http://www.troubleshooters.com/bookstore/key_excellence.htm
Twitter: http://www.twitter.com/stevelitt