jxxcarlson/elm-spreadsheet/3.0.0

NOTE: the latest version is 3.1.0

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 : Int -> Int -> Formula -> Spreadsheet -> Spreadsheet
isEvaluated : Spreadsheet -> Bool

Print

printAsList : Spreadsheet -> List (List String)
print : Spreadsheet -> String

Utility

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