I have this Haskell question as homework, and the details are a little complicated. I'd just like to clarify what I am trying to do in this question:
Define the function select which takes a list of integers and returns the list whose head is the smallest element in the list and whose tail is the result of recursively sorting the list obtained by deleting the smallest element of the list from the list.
Does this mean something like "the first element of the list is the smallest, and the last element of the list is the int just bigger than the smallest and smaller than everything else"?
For example if I have this List:
[ 2, 3, 4, 6, 8, 7]
,should the answer be
[2, 4, 6, 8, 7, 3]
or
[2, 4, 6, 7, 8, 3]
?