Commit 7cad3627 authored by js13g19's avatar js13g19
Browse files

feature: add print2DListLex function

parent d03edc1a
import Data.List
import Data.Char
import Data.Sequence
-- | Function print2aaaDListLex
-- 1. takes in a list of records
-- 2. prints them in lexicographical order
print2DListLex :: [[String]] -> IO()
print2DListLex (record:records) = sortBy () records
type Row = [String]
-- | rearran
rearrange :: [[String]] -> [[String]]
rearrange record
\ No newline at end of file
-- | Takes in a list of rows and prints them in lexicographical order
print2DListLex :: [Row] -> IO()
print2DListLex rows = returnIO $ sort rows
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment