// // 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 ;};_c :=len (array )/2;_b :=MergeSort (array [:_c ]);_d :=MergeSort (array [_c :]);_ca :=make ([]float64 ,len (array ));_dc :=0;_be :=0;_g :=0;for _be < len (_b )&&_g < len (_d ){if _b [_be ]<=_d [_g ]{_ca [_dc ]=_b [_be ];_be ++;}else {_ca [_dc ]=_d [_g ];_g ++;};_dc ++;};for _be < len (_b ){_ca [_dc ]=_b [_be ];_be ++;_dc ++;};for _g < len (_d ){_ca [_dc ]=_d [_g ];_g ++;_dc ++;};return _ca ;};