|
Enhanced C#
Loyc library documentation
|
Enumerator for FVList; also used by FWList. More...
Enumerator for FVList; also used by FWList.
Public fields | |
| FVList< T > | _tail |
| T | _current |
Properties | |
| T | Current [get] |
|
object System.Collections.IEnumerator. | Current [get] |
Properties inherited from Loyc.Collections.FVList< T > | |
| FVList< T > | Tail [get] |
| Returns a list without the first item. If the list is empty, an empty list is retured. More... | |
| T | First [get] |
| Returns the front item of the list (at index 0), which is the head of the list. More... | |
| bool | IsEmpty [get] |
| int | BlockChainLength [get] |
| Gets the number of blocks used by this list. More... | |
| T | this[int index] [get, set] |
| T | this[int index, T defaultValue] [get] |
| Gets an item from the list at the specified index; returns defaultValue if the index is not valid. More... | |
| int | Count [get] |
| bool | IsReadOnly [get] |
Properties inherited from Loyc.Collections.ISource< out T > | |
| new int | Count [get] |
| Gets the number of items in the collection. More... | |
Properties inherited from Loyc.Collections.ICount | |
| int | Count [get] |
| Gets the number of items in the collection. More... | |
Properties inherited from Loyc.Collections.IIsEmpty | |
| bool | IsEmpty [get] |
Properties inherited from Loyc.Collections.IIndexed< in K, out V > | |
| V | this[K key] [get] |
| Gets the value associated with the specified key. More... | |
Properties inherited from Loyc.Collections.IHasFirst< out T > | |
| T | First [get] |
| Gets the first item in the deque. More... | |
Public Member Functions | |
| Enumerator (FVList< T > list) | |
| Enumerator (VList< T > list) | |
| bool | MoveNext () |
| void | Reset () |
| void | Dispose () |
Public Member Functions inherited from Loyc.Collections.FVList< T > | |
| FVList (T firstItem) | |
| FVList (T itemZero, T itemOne) | |
| FVList (T[] array) | |
| FVList (IReadOnlyList< T > list) | |
| FVList< T > | WithoutFirst (int offset) |
| FVList< T > | PreviousIn (FVList< T > largerList) |
| FVList< T > | Last (int count) |
| override bool | Equals (object?rhs_) |
| Returns whether the two list references are the same. Does not compare the contents of the lists. More... | |
| override int | GetHashCode () |
| FVList< T > | AddRange (FVList< T > list) |
| FVList< T > | AddRange (FVList< T > list, FVList< T > excludeSubList) |
| FVList< T > | AddRange (IReadOnlyList< T > list) |
| FVList< T > | InsertRange (int index, IReadOnlyList< T > list) |
| FVList< T > | RemoveRange (int index, int count) |
| T | Pop () |
| Removes the front item (at index 0) from the list and returns it. More... | |
| FVList< T > | Push (T item) |
| Synonym for Add(); adds an item to the front of the list. More... | |
| VList< T > | ToVList () |
| Returns this list as a VList, which effectively reverses the order of the elements. More... | |
| FWList< T > | ToFWList () |
| Returns this list as a FWList. More... | |
| WList< T > | ToWList () |
| Returns this list as a WList, which effectively reverses the order of the elements. More... | |
| T[] | ToArray () |
| Returns the FVList converted to an array. More... | |
| FVList< T > | SmartAdd (T item, FVList< T > original) |
| Adds the specified item to the list, or original.WithoutFirst(original.Count - Count - 1) if doing so is equivalent. More... | |
| FVList< T > | SmartAdd (T item, ref FVList< T > original) |
| int | IndexOf (T item) |
| Searches for the specified object and returns the zero-based index of the first occurrence (lowest index) within the entire FVList. More... | |
| void IList< T >. | Insert (int index, T item) |
| FVList< T > | Insert (int index, T item) |
| void IList< T >. | RemoveAt (int index) |
| FVList< T > | RemoveAt (int index) |
| void ICollection< T >. | Add (T item) |
| Inserts an item at the front (index 0) of the FVList. More... | |
| FVList< T > | Add (T item) |
| Inserts an item at the front (index 0) of the FVList. More... | |
| void ICollection< T >. | Clear () |
| FVList< T > | Clear () |
| bool | Contains (T item) |
| Returns true if and only if the collection contains the specified item. More... | |
| void | CopyTo (T[] array, int arrayIndex) |
| Copies the elements of the collection to an Array, starting at a particular array index. More... | |
| bool | Remove (T item) |
| Enumerator | GetEnumerator () |
| IEnumerator< T > IEnumerable< T >. | GetEnumerator () |
|
System.Collections.IEnumerator System.Collections.IEnumerable. | GetEnumerator () |
| T | TryGet (int index, out bool fail) |
| IListSource< T > IListSource< T >. | Slice (int start, int count) |
| Returns a sub-range of this list. More... | |
| Slice_< T > | Slice (int start, int count=int.MaxValue) |
| Returns a sub-range of this list. More... | |
| FVList< T > | Clone () |
| object ICloneable. | Clone () |
| FVList< T > | Where (Func< T, bool > filter) |
| Applies a filter to a list, to exclude zero or more items. More... | |
| FVList< T > | WhereSelect (Func< T, Maybe< T >> filter) |
| Filters and maps a list with a user-defined function. More... | |
| FVList< T > | SmartSelect (Func< T, T > map) |
| Maps a list to another list of the same length. More... | |
| FVList< T > | SmartSelectMany (Func< T, IReadOnlyList< T >> map) |
| Maps a list to another list by concatenating the outputs of a mapping function. More... | |
| FVList< T > | Transform (VListTransformer< T > x) |
| Transforms a list (combines filtering with selection and more). More... | |
Public Member Functions inherited from Loyc.Collections.ITryGet< in K, out V > | |
| V | TryGet (K key, out bool fail) |
| Gets the item for the specified key or index, and does not throw an exception on failure. More... | |
Additional Inherited Members | |
Public static fields inherited from Loyc.Collections.FVList< T > | |
| static readonly FVList< T > | Empty = new FVList<T>() |
Static Public Member Functions inherited from Loyc.Collections.FVList< T > | |
| static bool | operator== (FVList< T > lhs, FVList< T > rhs) |
| Returns whether the two list references are the same. Does not compare the contents of the lists. More... | |
| static bool | operator!= (FVList< T > lhs, FVList< T > rhs) |
| Returns whether the two list references are different. Does not compare the contents of the lists. More... | |
| static | operator VList< T > (FVList< T > list) |
| Returns this list as a VList, which effectively reverses the order of the elements. More... | |
| static | operator FWList< T > (FVList< T > list) |
| Returns this list as a FWList. More... | |
| static | operator WList< T > (FVList< T > list) |
| Returns this list as a WList, which effectively reverses the order of the elements. More... | |
1.8.7