JYU-Utils-0.1.1.2: Some utility functions for JYU projects

Utils.Table

Documentation

type Table row col c = Map (row, col) cSource

type Stripe a b = Map a bSource

intersectionWith :: (Ord row, Ord col) => (a -> b -> c) -> Table row col a -> Table row col b -> Table row col cSource

row :: (Ord a, Ord b) => a -> Table a b c -> Stripe b cSource

column :: (Ord a, Ord b) => b -> Table a b c -> Stripe a cSource

rows :: (Ord a, Ord b) => Table a b c -> Map a (Stripe b c)Source

columns :: (Ord a, Ord b) => Table a b c -> Map b (Stripe a c)Source

rowNames :: (Ord a, Ord b) => Table a b c -> [a]Source

colNames :: (Ord a, Ord b) => Table a b c -> [b]Source

fromRows :: (Ord a, Ord b) => Map a (Stripe b c) -> Table a b cSource

fromCols :: (Ord a, Ord b) => Map a (Stripe b c) -> Table b a cSource