Exemple #1
0
        public static bool AreEquivalent(IFunArray a, IFunArray b)
        {
            if (a.Count != b.Count)
            {
                return(false);
            }
            if (a.Count == 0)
            {
                return(true);
            }
            for (int i = 0; i < a.Count; i++)
            {
                var elementA = a.GetElementOrNull(i);
                var elementB = b.GetElementOrNull(i);
                if (!AreEqual(elementA, elementB))
                {
                    return(false);
                }
            }

            return(true);
        }
Exemple #2
0
 public bool IsEquivalent(IFunArray array) => TypeHelper.AreEquivalent(this, array);