Problems from Chaper 7

Exercises 2 - 4

Selection Sort

Write a function that accomplishes selection sort that has the following definition:

  val select_sort = fn : int list -> int list
  
Which returns a sorted version of the parameter list, using the selection sort algorithm.