Lesson #18. String type and regular expressions

Back Menu Theory Lecture in pdf format Char type c: char; … c:=’a’;c: char; … c:=’a’; begin var c: char; c:=’a’; Println(c.IsDigit); // False Println(c.IsLetter); // True Println(c.IsLower); // True Println(c.IsUpper); // False Println(c.IsPunctuation); // знак препинания, boolean   с Читать далее

Lesson #14. Lambda expressions

Back Menu Go ahead lambda expression Theory A lambda expression is some unnamed expression representing a functional dependency. Based on lambda expression, the compiler builds a function, identifies it in some way and replaces this lambda expression with this identifier. Читать далее

Lesson #17. Sequence

Back Menu Go ahead Theory Standard sequence generators Range(a,b: integer): sequence of integer print(Range(1,10)); // [1,2,3,4,5,6,7,8,9,10]print(Range(1,10)); // [1,2,3,4,5,6,7,8,9,10] Range(a,b,step: integer): sequence of integer print(Range(1,10,2)); // [1,3,5,7,9]print(Range(1,10,2)); // [1,3,5,7,9] Range(c1,c2: char): sequence of char print(Range(’a’,’k’)); // [a,b,c,d,e,f,g,h,i,j,k]print(Range(‘a’,’k’)); // [a,b,c,d,e,f,g,h,i,j,k] Partition(a,b: real; Читать далее

Lesson #16. Matrices

Back Menu Go ahead Theory: Two-dimensional arrays Lecture in pdf format Definition A matrix or two-dimensional array is a rectangular table of numbers (or other elements of the same type). Each element of the matrix has two indices (row number Читать далее