
12 Jan
2016
12 Jan
'16
3:42 a.m.
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