[Haskell-cafe] How to devide matrix into small blocks

Henning Thielemann lemming at henning-thielemann.de
Thu Jun 14 08:02:09 EDT 2007


On Thu, 14 Jun 2007, Janis Voigtlaender wrote:

> Anyway, as a challenge to others on the list: write a one-liner that
> splits an "image" like ["abcd","efgh","ijkl","mnop"], interpreted as
>
> abcd
> efgh
> ijkl
> mnop
>
> into the list of images:
>
> [
> ab
> ef
> ,
> cd
> gh
> ,
> ij
> mn
> ,
> kl
> op
> ]

It's just an additional 'concat' in my solution, isn't it? Ah, you mean
without the 'split' helper function?


More information about the Haskell-Cafe mailing list