public void RetractAll(Structure head) { var entries = GetEntriesListForUpdate(); for (int i = entries.Count - 1; i >= 0; i--) { if (Term.Unifiable(head, entries[i].Head)) { entries.RemoveAt(i); } } }