//Teraz jestesmy w stanie sprwdzic czy dana lista pasuje do konkretnego wzorca

int[] numbers = { 1,2,3};

var pattern1 = numbers is [1, 2, 3];//true


var pattern2 = numbers is [ 2, 3];//false

var pattern3 = numbers is [_,2, 3];//true

var pattern4 = numbers is [_, 2, >2 and <5];//true


var number = new List<int> {1,2,3,4,5,6,7 };

var pattern2_1 = number is [1, 2, ..];//true
