[Haskell-beginners] question on evaluation

Fabien R theedge456 at free.fr
Mon Jan 11 08:41:07 UTC 2016


On 11/01/2016 06:24, Rein Henrichs wrote:
> Now that you understand what's going on with your version, here's an
> idiomatic definition of blowup for you to consider:
> 
>     blowup :: String -> String
>     blowup = join . zipWith replicate [1..]
> 
>     > blowup "bang"
>     "baannngggg"

Thanks for this "hint" Rein.
But, for now, it's a kind of "forward reference". I will certainly come
up with a similar solution later.

--
Fabien


More information about the Beginners mailing list