When I noticed that Elm does not support list comprehension, I tried to simulate Rubik’s Cube in Elm. In Haskell or even Python, I would write something like:
ghci> [2*c | c <- [1,2,3,4]] [2,
When I noticed that Elm does not support list comprehension, I tried to simulate Rubik’s Cube in Elm. In Haskell or even Python, I would write something like:
ghci> [2*c | c <- [1,2,3,4]] [2,