[Haskell-cafe] Re: Am I doing it right?
Achim Schneider
barsoap at web.de
Wed Sep 24 19:00:35 EDT 2008
Achim Schneider <barsoap at web.de> wrote:
> "Creighton Hogg" <wchogg at gmail.com> wrote:
>
> > So as another step in my education, I wanted to ask if the following
> > code at least feels 'morally' correct as a find/replace function,
> > replacing each occurrence of the sub-list before with after in the
> > list.
> >
> Besides not using head, tail and isPrefixOf I would write it the same,
> except that I'd write it like this:
>
Coming to think of it, I really don't like those temporary Int64's,
memchr or not.
--
(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or broadcasting of this signature prohibited.
More information about the Haskell-Cafe
mailing list