[{"name":"CellGrid","comment":" This library is just a test. I repeat: a test!\n\n## Main API\n\n@docs CellGrid, CellType, CellRenderer, renderAsHtml\n\n\n## Work with cells\n\n@docs mapWithIndex, classifyCell, cellAtIndex, setValue, location, index, indices\n\n","unions":[{"name":"CellGrid","comment":" A value of type `CellGrid a` is a rectangular array\nof values of type a.\n\n","args":["a"],"cases":[["CellGrid",["( Basics.Int, Basics.Int )","Array.Array a"]]]},{"name":"CellType","comment":" A cell can be in the interior of the grid,\non an edge, on in a cornder ","args":[],"cases":[["Corner",[]],["Edge",[]],["Interior",[]]]}],"aliases":[{"name":"CellRenderer","comment":" CellRenderer is a record that provides the information --\ncellSize, defaultColor, and the function cellColorizer --\nthat are needed to render a cell to SVG.\n\n","args":["a"],"type":"{ cellSize : Basics.Float, cellColorizer : a -> CellGrid.ColorValue, defaultColor : CellGrid.ColorValue }"}],"values":[{"name":"cellAtIndex","comment":" Return the Maybe value of the cell at (i,j) from grid\n\n","type":"( Basics.Int, Basics.Int ) -> CellGrid.CellGrid a -> Maybe.Maybe a"},{"name":"classifyCell","comment":" return the type of the cell at location (i,j).  Thus\nclassifyCell grid (0,0) = Corner\n","type":"CellGrid.CellGrid a -> ( Basics.Int, Basics.Int ) -> CellGrid.CellType"},{"name":"index","comment":" Conversely, `index (nRows, nCols) k` is the\n2D array index `(i,j)` of the element al address `k`\n","type":"( Basics.Int, Basics.Int ) -> Basics.Int -> ( Basics.Int, Basics.Int )"},{"name":"indices","comment":" Return a list of all indices (i,j) of a grid.\nUseful for mapping.\n\n","type":"CellGrid.CellGrid a -> List.List ( Basics.Int, Basics.Int )"},{"name":"location","comment":" Consider a 1D array of elements which represents\na 2D array with n rows. Then `location  n (i,j)`\nis the index in the 1D array of the correspondng\nelement in the 2D array at location (i,j)`\n","type":"Basics.Int -> ( Basics.Int, Basics.Int ) -> Basics.Int"},{"name":"mapWithIndex","comment":" Transform a CellGrid a with a function ((Int, Int) -> a -> a)\n","type":"(( Basics.Int, Basics.Int ) -> a -> a) -> CellGrid.CellGrid a -> CellGrid.CellGrid a"},{"name":"renderAsHtml","comment":" Render a cell grid as Html\n\n","type":"CellGrid.CellRenderer a -> CellGrid.CellGrid a -> Html.Html msg"},{"name":"setValue","comment":" Set the value of the cell at location (i,j)\n\n","type":"CellGrid.CellGrid a -> ( Basics.Int, Basics.Int ) -> a -> CellGrid.CellGrid a"}],"binops":[]}]