[Haskell-beginners] multidimensional data

agander agander at gmail.com
Tue Apr 23 04:54:53 UTC 2019


On Monday, 22 April 2019, Barry DeZonia <bdezonia at gmail.com> wrote:

> I've played with Haskell on and off for a number of years. I have a
> question that isn't directly related to Haskell only but to functional
> programming. Sorry if this is off topic.
>
> In Haskell, how would you represent a 5 dimensional data structure of
> numeric values? Imagine a dataset with axes x, y, z, channel, and time. Is
> there an easy way to represent this in the data that doesn't run into all
> kinds of memory limits? How would you map the data to a new state such that
> the new state had pixel (1000, 2000, 100, 1, 20) set to 53?
>

Maybe a lens [1]

[1] http://hackage.haskell.org/package/lens-tutorial-1.0.
3/docs/Control-Lens-Tutorial.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20190423/be5f0146/attachment.html>


More information about the Beginners mailing list