Skip to content
Snippets Groups Projects
Commit 7cad3627 authored by js13g19's avatar js13g19
Browse files

feature: add print2DListLex function

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