[Haskell-beginners] How is takeWhile implemented?

KC kc1956 at gmail.com
Mon Jul 9 23:26:44 CEST 2012


Then think of another approach to doing the problem. :)


On Mon, Jul 9, 2012 at 1:30 PM, Carlos J. G. Duarte <
carlos.j.g.duarte at gmail.com> wrote:

>
> Thanks, that's it. I had just to move the underK call inside the if:
>
> underK k (x:xs) = if x < k then x : underK k xs else []
>
> ... I'm finding this to be a little too awkward to me!
>
>
>
-- 
--
Regards,
KC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120709/e580581b/attachment.htm>


More information about the Beginners mailing list