I have a list which is comprised of a list of strings, declared as:
type alias Model =
{ board : List (List String)
}
init : Model
init =
{ board =
[ ["", "", ""]
, ["", "", ""]
, ["", "", ""]
]
}
In my update function, I am attempting to access an inner element of the lists via
(getAt col (getAt row model.board))
I get the following error when I try to compile it though. How do I convert from Maybe List to Just List or simply List?
The 2nd argument to `getAt` is not what I expect:
65| (getAt col (getAt row model.board))
^^^^^^^^^^^^^^^^^^^^^
This `getAt` call produces:
Maybe (List String.String)
But `getAt` needs the 2nd argument to be:
List a