Skip to content

Instantly share code, notes, and snippets.

@5outh
Created Apr 3, 2012
Embed
What would you like to do?
Insertion Sort
import Data.List
insertionSort :: (Ord a) => [a] -> [a]
insertionSort = foldr insert []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment