Simple table transformations
- sortColumns :: Ord a => [Int] -> [[a]] -> [[a]]
- joinTables :: Ord o => [(Int, Int)] -> [[o]] -> [[o]] -> [[o]]
- crossJoinTables :: [[a]] -> [[a]] -> [[a]]
- joinPresortedTables :: Ord o => [(Int, Int)] -> [[o]] -> [[o]] -> [[o]]
- rowComparison :: Ord a => [Int] -> [a] -> [a] -> Ordering
Documentation
sortColumns :: Ord a => [Int] -> [[a]] -> [[a]]Source
sort the given table
on the given columns
joinTables :: Ord o => [(Int, Int)] -> [[o]] -> [[o]] -> [[o]]Source
join together two tables on the given column index pairs
crossJoinTables :: [[a]] -> [[a]] -> [[a]]Source
joinPresortedTables :: Ord o => [(Int, Int)] -> [[o]] -> [[o]] -> [[o]]Source
join together two tables that are presorted on the given column index pairs
rowComparison :: Ord a => [Int] -> [a] -> [a] -> OrderingSource
compare two rows based on given column balues