Module

Data.Table

Package
purescript-tables
Repository
colehaus/purescript-tables

#cell Source

cell :: forall rowId columnId cell. Hashable columnId => Hashable rowId => Table rowId columnId cell -> rowId -> columnId -> Maybe cell

#column Source

column :: forall rowId columnId cell. Hashable columnId => Hashable rowId => Hashable cell => Table rowId columnId cell -> columnId -> HashMap rowId cell

#columnId Source

columnId :: forall rowId columnId. Tuple rowId columnId -> columnId

#columnIds Source

columnIds :: forall cell rowId columnId. Hashable columnId => Table rowId columnId cell -> HashSet columnId

#columns Source

columns :: forall idr idc c. Hashable idc => Hashable idr => Hashable c => Table idr idc c -> HashSet (HashMap (Tuple idr idc) c)

#columns' Source

columns' :: forall idr idc c. Hashable idc => Hashable idr => Table idr idc c -> HashMap idc (HashMap idr c)

#mapColumns Source

mapColumns :: forall cell2 cell1 columnId rowId. Hashable columnId => Hashable rowId => Hashable cell1 => (HashMap rowId cell1 -> HashMap rowId cell2) -> Table rowId columnId cell1 -> Either (HashSet (MissingCell rowId columnId)) (Table rowId columnId cell2)

The mapping function should preserve the length of the list. If it doesn't, you'll end up

#mapRows Source

mapRows :: forall cell2 cell1 columnId rowId. Hashable columnId => Hashable rowId => Hashable cell1 => (HashMap columnId cell1 -> HashMap columnId cell2) -> Table rowId columnId cell1 -> Either (HashSet (MissingCell rowId columnId)) (Table rowId columnId cell2)

The mapping function should preserve the length of the list. If it doesn't, you'll end up

#row Source

row :: forall rowId columnId cell. Hashable rowId => Hashable columnId => Hashable cell => Table rowId columnId cell -> rowId -> HashMap columnId cell

#rowId Source

rowId :: forall rowId columnId. Tuple rowId columnId -> rowId

#rowIds Source

rowIds :: forall cell rowId columnId. Hashable rowId => Table rowId columnId cell -> HashSet rowId

#rows Source

rows :: forall idr idc cell. Hashable idr => Hashable idc => Hashable cell => Table idr idc cell -> HashSet (HashMap (Tuple idr idc) cell)

#rows' Source

rows' :: forall idr idc c. Hashable idr => Hashable idc => Table idr idc c -> HashMap idr (HashMap idc c)

Re-exports from Data.Table.Internal

#Table Source

newtype Table rowId columnId cell

Instances

#MissingCell Source

newtype MissingCell rowId columnId

Instances

#mk Source

mk :: forall cell rowId columnId. Hashable rowId => Hashable columnId => HashMap (Tuple rowId columnId) cell -> Either (HashSet (MissingCell rowId columnId)) (Table rowId columnId cell)