pascalabcnet/TestSuite/patterns/patterns-collection-matching1.pas
Александр Погорелов abaecf807f Formatter fixes, code examples.
2019-05-23 10:37:16 +03:00

10 lines
166 B
ObjectPascal

begin
var a := Arr(1, 9, 8, 7, 2, 3, 4, 5);
var c: procedure := () -> begin
match a with
[.., 4, var x]: assert(x = 5);
end;
end;
c;
end.