Delphi returns the minimum value of a 64 bit integer array

From , 5 Years ago, written in Delphi (Object Pascal), viewed 83 times.
URL https://pastebin.vip/view/81b44841
  1. function MinOfArray(const A: array of Int64): Int64; overload;
  2. var
  3.   Idx: Integer;
  4. begin
  5.   Assert(Length(A) > 0);
  6.   Result := A[Low(A)];
  7.   for Idx := Succ(Low(A)) to High(A) do
  8.     if A[Idx] < Result then
  9.       Result := A[Idx];
  10. end;
  11. //delphi/2286

Reply to "Delphi returns the minimum value of a 64 bit integer array"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website