Source/Fusion/Core/ObservableList/SumTree.Operations.cs
/// <summary>
/// Return a new tree with the value at index removed. O(log n).
/// </summary>
Return a new tree with the value at index removed.
Return a new tree with the value at index removed .
public SumTree<T> RemoveAt(int index)
		{
			if (index < 0 || index >= Count)
				throw new IndexOutOfRangeException("index");
			return _tree.MatchWith(
				tree => FromOptional(RemoveAtInner(0, tree, Count, index), Count - 1),
				() =>
				{
					throw new Exception("SumTree.Remove: Impossible");
				});
		}
public SumTree < T > RemoveAt ( int index ) { if ( index < 0 || index >= Count ) throw new IndexOutOfRangeException ( " " ) ; return _tree . MatchWith ( tree => FromOptional ( RemoveAtInner ( 0 , tree , Count , index ) , Count - 1 ) , ( ) => { throw new Exception ( " " ) ; } ) ; }
Return a new tree with the value at index removed.
Return a new tree with the value at index removed .
index
int