using System.Collections.Generic;
public static void Main()
"has values tests".Dump();
int[] hasValues = { 1, 2, 3, 4 };
(hasValues is [..]).Dump();
TestThings(hasValues).Dump();
"No values tests".Dump();
int[] noValues = new int[0];
(noValues is [..]).Dump();
TestThings(noValues).Dump();
public static string TestThings<T>(IEnumerable<T> items) => items switch
int[] { Length: > 0 } => "More than zero",