On Sun, Mar 14, 2010 at 12:26 PM, michael rice <[email protected]> wrote: > > Is there a library function that will create two lists from one based on a > predicate, one list for all elements that satisfy the predicate and one for > all that do not? Don't want to reinvent the wheel. > > Michael > > > > > _______________________________________________ > Haskell-Cafe mailing list > [email protected] > http://www.haskell.org/mailman/listinfo/haskell-cafe >
Data.List.filter will do the trick. Alex _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
