fix #2042
This commit is contained in:
parent
dddd90f710
commit
b5ea7dacb9
|
|
@ -15,7 +15,7 @@ internal static class RevisionClass
|
|||
public const string Major = "3";
|
||||
public const string Minor = "5";
|
||||
public const string Build = "0";
|
||||
public const string Revision = "2191";
|
||||
public const string Revision = "2192";
|
||||
|
||||
public const string MainVersion = Major + "." + Minor;
|
||||
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
%MINOR%=5
|
||||
%REVISION%=2191
|
||||
%COREVERSION%=0
|
||||
%REVISION%=2192
|
||||
%MINOR%=5
|
||||
%MAJOR%=3
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
!define VERSION '3.5.0.2191'
|
||||
!define VERSION '3.5.0.2192'
|
||||
|
|
|
|||
|
|
@ -8488,23 +8488,23 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
/// Возвращает бесконечную последовательность целых от текущего значения с шагом step
|
||||
function Step(Self: integer; step: integer): sequence of integer; extensionmethod;
|
||||
/// Возвращает бесконечную последовательность целых от текущего значения с шагом st
|
||||
function Step(Self: integer; st: integer): sequence of integer; extensionmethod;
|
||||
begin
|
||||
while True do
|
||||
begin
|
||||
yield Self;
|
||||
Self += step;
|
||||
Self += st;
|
||||
end;
|
||||
end;
|
||||
|
||||
/// Возвращает бесконечную последовательность вещественных от текущего значения с шагом step
|
||||
function Step(Self: real; step: real): sequence of real; extensionmethod;
|
||||
/// Возвращает бесконечную последовательность вещественных от текущего значения с шагом st
|
||||
function Step(Self: real; st: real): sequence of real; extensionmethod;
|
||||
begin
|
||||
while True do
|
||||
begin
|
||||
yield Self;
|
||||
Self += step;
|
||||
Self += st;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
3
TestSuite/StepReal.pas
Normal file
3
TestSuite/StepReal.pas
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
begin
|
||||
Assert(0.0.Step(0.3).Take(2).SequenceEqual(Seq(0.0,0.3)));
|
||||
end.
|
||||
|
|
@ -8488,23 +8488,23 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
/// Возвращает бесконечную последовательность целых от текущего значения с шагом step
|
||||
function Step(Self: integer; step: integer): sequence of integer; extensionmethod;
|
||||
/// Возвращает бесконечную последовательность целых от текущего значения с шагом st
|
||||
function Step(Self: integer; st: integer): sequence of integer; extensionmethod;
|
||||
begin
|
||||
while True do
|
||||
begin
|
||||
yield Self;
|
||||
Self += step;
|
||||
Self += st;
|
||||
end;
|
||||
end;
|
||||
|
||||
/// Возвращает бесконечную последовательность вещественных от текущего значения с шагом step
|
||||
function Step(Self: real; step: real): sequence of real; extensionmethod;
|
||||
/// Возвращает бесконечную последовательность вещественных от текущего значения с шагом st
|
||||
function Step(Self: real; st: real): sequence of real; extensionmethod;
|
||||
begin
|
||||
while True do
|
||||
begin
|
||||
yield Self;
|
||||
Self += step;
|
||||
Self += st;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue