jxxcarlson / elm-spreadsheet / Spreadsheet

This module provides functions to parse, evaluate, and render spreadsheets.

Types


type alias Spreadsheet =
Array2D Cell

Read

read : (String -> Cell) -> String -> Spreadsheet

The function parse: String -> Cell is a parser for cells, e.g., CellParser.parse or CellParserExcel.parse

readFromList : (String -> Cell) -> List (List String) -> Spreadsheet

Eval

eval : Spreadsheet -> Spreadsheet

Evaluate the formulas in a spreadsheet

evalFormula : Basics.Int -> Basics.Int -> Cell.Formula -> Spreadsheet -> Spreadsheet

isEvaluated : Spreadsheet -> Basics.Bool

Print

printAsList : Spreadsheet -> List (List String)

print : Spreadsheet -> String

Utility

getCell : Basics.Int -> Basics.Int -> Spreadsheet -> Maybe Cell