3. Sequences

Creating list items:

L: = [seq (i, i = 1..10)];

L: = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

select (type, L, 'odd');

[1, 3, 5, 7, 9]

remove (type, L, 'odd');

[2, 4, 6, 8, 10]

selectremove (type, L, 'odd');

[1, 3, 5, 7, 9], [2, 4, 6, 8, 10]

The zip command (f, list1, list2) creates a new list of elements that result from the function of the two variables f, whose parameters are two-part elements of two lists list1 and list2.

Usually a list is created, the length of which is equal to the length of the smallest of the two given lists.

If the fourth parameter is specified when accessing this command, the length of the new list is equal to the length of the largest list, and the fourth parameter is used as the missing parameter when the function is called.

L1: = [seq (I, i = "a" .. "b")]; = L1: = ["a", "b"]

L2: = [seq (I, i = 2..6)]; => L2: = [2, 3, 4, 5, 6]

zip ((x, y) -x || y, L1, L2); = ["A2", "b3"]

Accessibility

Font Face Font Face

Font Size Font Size

1

Text Colour Text Colour

Background Colour Background Colour

Font Kerning Font Kerning

Image Visibility Image Visibility

Letter Spacing Letter Spacing

0

Line Height Line Height

1.2

Link Highlight Link Highlight