// // Copyright 2020 FoxyUtils ehf. All rights reserved. // // This is a commercial product and requires a license to operate. // A trial license can be obtained at https://unidoc.io // // DO NOT EDIT: generated by unitwist Go source code obfuscator. // // Use of this source code is governed by the UniDoc End User License Agreement // terms that can be accessed at https://unidoc.io/eula/ package mergesort ;func MergeSort (array []float64 )[]float64 {if len (array )<=1{_a :=make ([]float64 ,len (array ));copy (_a ,array );return _a ;};_de :=len (array )/2;_c :=MergeSort (array [:_de ]);_aa :=MergeSort (array [_de :]);_ae :=make ([]float64 ,len (array ));_f :=0;_ad :=0;_ab :=0;for _ad < len (_c )&&_ab < len (_aa ){if _c [_ad ]<=_aa [_ab ]{_ae [_f ]=_c [_ad ];_ad ++;}else {_ae [_f ]=_aa [_ab ];_ab ++;};_f ++;};for _ad < len (_c ){_ae [_f ]=_c [_ad ];_ad ++;_f ++;};for _ab < len (_aa ){_ae [_f ]=_aa [_ab ];_ab ++;_f ++;};return _ae ;};