[Haskell-beginners] questions on evaluation.

Fabien R theedge456 at free.fr
Tue Jan 12 08:42:48 UTC 2016


On 12/01/2016 00:18, Peter McIlroy wrote:
> Fabian,
> 
> For your problem of bang ->  baanngggg
> You can derive Rein's hairy idiom from a more straightforward technique for
> getting a recursive definition:
> 
> First get a basic implementation using ++ and recursion:
> 
> * add a helper function with any "state variables" as arguments.
> * Ignore concatenation while thinking about a problem.
> * Use pattern matching for recursion step.

Thanks for the hint Peter

--
Fabien


More information about the Beginners mailing list