|
From: Michael C. <mcl...@ho...> - 2011-10-09 13:06:24
|
Hi --- Finally getting around to developing my first serious Factor code and I have a quick question. I'm a Forth programmer (although of late it has been mostly my own bastardized version of Forth). I'm thinking of one immediate use of Combinators as a way of eliminating some of the unsightly procedural code that lives in the kind of Forth function I would write inside of, say, a Begin While Repeat loop. But if what I would have wanted to do with my loop is loop through every item in a collection of some sort until some condition was true and at that point exit the loop early, is there a way to do this using Combinators? Are there versions of the primary ones that will operate on the target sequence only until a condition is reached? I will of course peruse the documentation, but I thought I would just ask in case someone could steer me there more quickly (and in case some other newbie has the same question). Thanks much. Mike |