Administrator approval is now required for registering new accounts. If you are registering a new account, and are external to the University, please ask the repository owner to contact ServiceLine to request your account be approved. Repository owners must include the newly registered email address, and specific repository in the request for approval.

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
Markdown is supported
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