[Haskell-beginners] Creating a Triple List from a List

A. Mc. 47dragonfyre at gmail.com
Sun Feb 28 02:07:21 UTC 2021


Hello,

What is the best way to take:
[1, 2, 3, 4 ]

And convert it to:

[ [ [ 1 ], [ 2 ] ], [ [3]. [4] ] ]

so that each member pair is:

[ [1], [2] ]

roughly analogous to a 1x2 vector?

Thanks in advance and thank you for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20210227/3a966693/attachment.html>


More information about the Beginners mailing list