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); }
public bool IsEquivalent(IFunArray array) => TypeHelper.AreEquivalent(this, array);