Jonathan M Davis <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #2 from Jonathan M Davis <> 2010-08-14 
18:45:43 PDT ---
I'd say that it mostly does, but it's not generic enough. until() has the
concept of a sentinel, while takeWhile() is based entirely on a predicate. I'm
not quite sure how their implementations would be different, but I'd expect
takeWhile() to be at least slightly more efficient (though perhaps negligably
so) than until(). I think that it would be beneficial to have the more generic
takeWhile(); if nothing else, the intent is clearer.

Of course, truth be told, I'm not a huge fan of until() anyway. I really think
that it should be more like find() except return what's before what you're
looking for rather than starting with it like find() does.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to