forked from pascalabcnet/pascalabcnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet …
…into test
- Loading branch information
Showing
14 changed files
with
6,479 additions
and
3,573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
%MINOR%=10 | ||
%REVISION%=3589 | ||
%REVISION%=3593 | ||
%COREVERSION%=2 | ||
%MAJOR%=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
begin | ||
var a := [1,2,3]; // по умолчанию - массив | ||
Println(a,TypeName(a)); | ||
var s := [2..4]; // если есть диапазон, то множество | ||
Println(s,TypeName(s)); | ||
var s1: set of byte := [3,4,5]; // множество инициализируется значениями в [] | ||
Println(s1,TypeName(s1)); | ||
// Если один из операндов - множество, то результат - множество | ||
Println(s + [1,2,3], s * [1,2,3], [1,2,3] - s, s - [1,2,3]); | ||
// Это - операции с массивами | ||
Println(a + [7,8,9], a * 3); | ||
// Операция in для массива и для множества. Внешний вид одинаков | ||
Println(5 in [3,5,7], 5 in [3..5,7]); | ||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.