[Haskell-cafe] Re: Embedding newlines into a string?

Brent Yorgey byorgey at gmail.com
Mon Apr 14 13:37:17 EDT 2008


>
> hanoi :: a -> a -> a -> Int -> [(a, a)]
> hanoi a b c n = hanoi_helper a b c n
>

Note that now hanoi is exactly the same function as hanoi_helper, so you may
as well just get rid of hanoi_helper. =)

-Brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080414/964f84b6/attachment.htm


More information about the Haskell-Cafe mailing list