This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - Haskell Mergesort | |
| - Copyright (C) 2014 by Kendall Stewart | |
| First we define a couple of helper functions that | |
| will be useful in splitting the list in half: | |
| > fsthalf :: [a] -> [a] | |
| > fsthalf xs = take (length xs `div` 2) xs |