Commit cd95d0a2 authored by pm3g19's avatar pm3g19
Browse files
parents 9335cf81 7cad3627
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