nielsAD / lape

Scripting engine with Pascal-like syntax for FPC and Delphi
119 stars 28 forks source link

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

Closed ollydev closed 3 years ago

ollydev commented 3 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;