Cell specifies the kind content of Spreadsheet cells may have.
Either Formula Value
Parse the text representation to see the internal representation of a cell:
> parse "3.1"
Right (Real 3.1)
Examples:
Parse the text representation to see the internal representation of a formula:
> parse "=A2+B3"
Left (Formula Add (Pair { left = { col = 1, row = 0 }, right = { col = 2, row = 1 } }))
> parse "=sum(A2:A8)"
Left (Formula Add (Range { left = { col = 1, row = 0 }, right = { col = 7, row = 0 } }))
> parse "=sum(B3:B9)"
Left (Formula Add (Range { left = { col = 2, row = 1 }, right = { col = 8, row = 1 } }))
{ row : Basics.Int, col : Basics.Int }
{ left : Index
, right : Index
}
render : Cell -> String
isValue : Cell -> Basics.Bool
mapReal : (Basics.Float -> Basics.Float) -> Cell -> Cell
opFromString : String -> Op
opFromString2 : String -> Op
realValue : Cell -> Maybe Basics.Float
stringFromOp : Op -> String