nielsAD / lape

Scripting engine with Pascal-like syntax for FPC and Delphi
112 stars 26 forks source link

Sort now accepts `Extended/Int64 array` as weights #168

Closed ollydev closed 2 years ago

ollydev commented 2 years ago

Improved #167

// Sort(var array)
// Sort(var array; compare: function(constref L,R: Type): Integer));

// Sorted(const array): array;
// Sorted(const array; compare: function(constref L,R: Type): Integer)): array;

// Sort(var array; const weights: array of Int64);
// Sort(var array; const weights: array of Extended);

// Sorted(const array; const weights: array of Int64): array;
// Sorted(const array; const weights: array of Extended): array;