diff --git a/Configuration/GlobalAssemblyInfo.cs b/Configuration/GlobalAssemblyInfo.cs index 11e5d9de5..f438bea6a 100644 --- a/Configuration/GlobalAssemblyInfo.cs +++ b/Configuration/GlobalAssemblyInfo.cs @@ -15,7 +15,7 @@ internal static class RevisionClass public const string Major = "3"; public const string Minor = "11"; public const string Build = "0"; - public const string Revision = "3673"; + public const string Revision = "3676"; public const string MainVersion = Major + "." + Minor; public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision; diff --git a/Configuration/Version.defs b/Configuration/Version.defs index 032c2b919..d147780c6 100644 --- a/Configuration/Version.defs +++ b/Configuration/Version.defs @@ -1,4 +1,4 @@ -%MINOR%=11 -%REVISION%=3673 %COREVERSION%=0 +%REVISION%=3676 +%MINOR%=11 %MAJOR%=3 diff --git a/InstallerSamples/WhatsNew/3_11_1/CountOf_s.pas b/InstallerSamples/WhatsNew/3_11_1/CountOf_s.pas new file mode 100644 index 000000000..a1b718a87 --- /dev/null +++ b/InstallerSamples/WhatsNew/3_11_1/CountOf_s.pas @@ -0,0 +1,5 @@ +begin + var s := 'arara'; + s.CountOf('ara').Println; + s.CountOf('ara',allowOverlap := True).Println; +end. \ No newline at end of file diff --git a/InstallerSamples/WhatsNew/3_11_1/TurtleABCExample.pas b/InstallerSamples/WhatsNew/3_11_1/TurtleABCExample.pas new file mode 100644 index 000000000..724ccf799 --- /dev/null +++ b/InstallerSamples/WhatsNew/3_11_1/TurtleABCExample.pas @@ -0,0 +1,55 @@ +uses TurtleABC; + +begin + Mark; + SetScale(4); + SetOrigin(5,-35); + //SetOrigin(-20,-50); + Mark; + SetColor(Color.Blue); + Down; + + loop 4 do + begin + Forw(20); + Turn(90); + end; + + Up; + MoveTo(-30, 30); + Down; + SetColor(Color.Red); + + Mark; + loop 3 do + begin + Forw(15); + Turn(120); + end; + + Up; + MoveTo(30, 40); + Down; + SetColor(Color.Green); + + Mark; + loop 20 do + begin + Forw(30); + Turn(100); + end; + + Up; + MoveTo(-30, 90); + Mark; + Down; + SetColor(Color.Orange); + + loop 5 do + begin + Forw(30); + Turn(144); + end; + + DrawCoordPoints; +end. \ No newline at end of file diff --git a/PABCNetHelp/LangGuide/PABCSystemUnit/Files/Common subroutines.html b/PABCNetHelp/LangGuide/PABCSystemUnit/Files/Common subroutines.html index 1b200a4ee..d2c82a3d7 100644 --- a/PABCNetHelp/LangGuide/PABCSystemUnit/Files/Common subroutines.html +++ b/PABCNetHelp/LangGuide/PABCSystemUnit/Files/Common subroutines.html @@ -1,5 +1,6 @@
function Between<T>(val, a, b: T): boolean; where T: IComparable<T>;
-Âîçâðàùàåò True, åñëè çíà÷åíèå val íàõîäèòñÿ ìåæäó a è b (âêëþ÷èòåëüíî) íåçàâèñèìî îò ïîðÿäêà a è b |
function Between<T>(val, a, b: T; inclusive: boolean := true): boolean; where T: IComparable<T>;
+Âîçâðàùàåò True, åñëè çíà÷åíèå val íàõîäèòñÿ ìåæäó a è b íåçàâèñèìî îò ïîðÿäêà a è b |
function Clamp<T>(x,bottom,top: T): T; where T: IComparable<T>;
+Îãðàíè÷èâàåò çíà÷åíèå x äèàïàçîíîì [bottom, top] |
function CommandLineArgs: array of string;
-Âîçâðàùàåò àðãóìåíû êîìàíäîé ñòðîêè, ñ êîòîðûìè áûëà çàïóùåíà ïðîãðàììà |
procedure Dec(var i: integer);
Óìåíüøàåò çíà÷åíèå ïåðåìåííîé i íà 1 |
procedure Dec(var i: integer; n: integer);
@@ -60,6 +63,6 @@
|
function Succ(x: ïåðå÷èñëèìûé òèï): ïåðå÷èñëèìûé òèï;
Âîçâðàùàåò ñëåäóþùåå çà x çíà÷åíèå |
procedure Swap<T>(var a, b: T);
-Ìåíÿåò ìåñòàìè çíà÷åíèÿ äâóõ ïåðåìåííûõ |
function AdjacentFind<T>(Self: IList<T>; eq: (T,T)->boolean; start: integer := 0): integer;
procedure Fill<T>(Self: List<T>; x: T);
+function Fill<T>(Self: List<T>; x: T): List<T>;
procedure Fill<T>(Self: List<T>; f: integer->T);
+function Fill<T>(Self: List<T>; f: integer->T): List<T>;
function IndexMax<T>(Self: List<T>; index: integer := 0): integer; where T: IComparable<T>;
function RemoveLast<T>(Self: List<T>): List<T>;
procedure Replace<T>(Self: List<T>; oldValue, newValue: T);
-function Replace<T>(Self: List<T>; oldValue, newValue: T): List<T>;
+function Shuffle<T>(Self: List<T>): List<T>;
function Slice<T>(Self: List<T>; from, step: integer): List<T>;
function Slice<T>(Self: List<T>; from, step, count: integer): List<T>;
procedure Transform<T>(Self: List<T>; f: T->T);
+function Swap<T>(Self: List<T>; i, j: integer): List<T>;
+function Transform<T>(Self: List<T>; f: T->T): List<T>;
procedure Transform<T>(Self: List<T>; f: (T,integer)->T);
+function Transform<T>(Self: List<T>; f: (T,integer)->T): List<T>;