Module
Data.Table
- Package
- purescript-tables
- Repository
- colehaus/purescript-tables
#mapColumns Source
mapColumns :: forall rowId columnId cell1 cell2. Ord columnId => Ord rowId => (NonEmptyList cell1 -> NonEmptyList cell2) -> Table rowId columnId cell1 -> Either (Set (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 with a Left
.
#mapRows Source
mapRows :: forall rowId columnId cell1 cell2. Ord columnId => Ord rowId => (NonEmptyList cell1 -> NonEmptyList cell2) -> Table rowId columnId cell1 -> Either (Set (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 with a Left
.
Re-exports from Data.Table.Internal
#MissingCell Source
newtype MissingCell rowId columnId
Instances
Generic (MissingCell rowId columnId) _
(Eq rowId, Eq columnId) => Eq (MissingCell rowId columnId)
(Ord rowId, Ord columnId) => Ord (MissingCell rowId columnId)
(Show rowId, Show columnId) => Show (MissingCell rowId columnId)
- Modules
- Data.
Table - Data.
Table. Internal