Discussion:
[elm-discuss] more than 1d?
Raoul Duke
2017-07-05 17:19:08 UTC
Permalink
lists and List.map etc. are fine for 1d.

what about 2+d?

(wish we had list comprehensions.)
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Matthew Griffith
2017-07-05 18:15:43 UTC
Permalink
I'd recommend getting on the elm slack, there are a bunch of helpful people
there!

For multi-dimensional lists you can use `List.map` twice :)

```
data = [ [1,2,3], [4,5,6]]

result =
List.map (List.map ((+) 5)) data

```
Post by Raoul Duke
lists and List.map etc. are fine for 1d.
what about 2+d?
(wish we had list comprehensions.)
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...