Skip to content
Snippets Groups Projects
Commit cd95d0a2 authored by pm3g19's avatar pm3g19
Browse files
parents 9335cf81 7cad3627
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment