示例#1
0
        public static void AbsDistinct()
        {
            int[] arr = new int[] { -3, -3, 3, 3 };
            Assert.That(ArrayQ.AbsDistinct(arr) == 1);

            Assert.That(ArrayQ.AbsDistinct(new int[] { -5, -3, -1, 0, 3, 6}) == 5);
        }