As stated in the book, because of https://bugs.swift.org/browse/SR-1914, we can't simply do:
return qsort(lesser) + [pivot] + qsort(greater)
but what about:
return qsort(lesser) + Array(arrayLiteral: pivot) + qsort(greater)
and getting rid of the intermediate let?
As stated in the book, because of https://bugs.swift.org/browse/SR-1914, we can't simply do:
return qsort(lesser) + [pivot] + qsort(greater)
but what about:return qsort(lesser) + Array(arrayLiteral: pivot) + qsort(greater)
and getting rid of the intermediate let?