[Haskell-beginners] Re: mayBe stuck

prad prad at towardsfreedom.com
Thu Aug 5 23:34:57 EDT 2010

On Thu, 5 Aug 2010 19:07:13 -0700
prad <prad at towardsfreedom.com> wrote:

> correcting it by sticking on a
> delimiter doesn't seem to be the right thing to do though. so there
> must be another way to deal with this. hmmm.
i think i can solve the dilemma by introducing an accessory function

br []       = []
br ss       = fst (tup) : br (getTail (snd tup))
        tup     = break eqD ss
        getTail s
            | s==[]     = []
            | otherwise = tail s

it works, though i don't know if this is necessarily the best way to do

In friendship,

                                      ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's

More information about the Beginners mailing list