public ListContextBuilder With(IListContext context) { WithDense(context.Dense); WithAlignItems(context.AlignItems); return(this); }
/// <summary> /// Returns a Slinq that enumerates over the element, index pairs of the specified list in decending order starting with the specified /// index. /// If startIndex is outside the element range of the list, the resulting Slinq will be empty. /// Slinqs created by this method will chain removal operations to the underlying list. /// </summary> public static Slinq <ValueTuple <T, int>, IListContext <T> > SlinqWithIndexDescending <T>(this IList <T> list, int startIndex) { return(IListContext <T> .SlinqWithIndex(list, startIndex, -1)); }
/// <summary> /// Returns a Slinq that enumerates over the elements of the specified list using the specified start index and step. /// If startIndex is outside the element range of the list, the resulting Slinq will be empty. /// Slinqs created by this method will chain removal operations to the underlying list. /// </summary> public static Slinq <T, IListContext <T> > Slinq <T>(this IList <T> list, int startIndex, int step) { return(IListContext <T> .Slinq(list, startIndex, step)); }
/// <summary> /// Returns a Slinq that enumerates over the element, index pairs of the specified list in descending order. /// Slinqs created by this method will chain removal operations to the underlying list. /// </summary> public static Slinq <ValueTuple <T, int>, IListContext <T> > SlinqWithIndexDescending <T>(this IList <T> list) { return(IListContext <T> .SlinqWithIndex(list, list.Count - 1, -1)); }
/// <summary> /// Returns a Slinq that enumerates over the elements of the specified list in decending order starting with the specified index. /// If startIndex is outside the element range of the list, the resulting Slinq will be empty. /// Slinqs created by this method will chain removal operations to the underlying list. /// </summary> public static Slinq <T, IListContext <T> > SlinqDescending <T>(this IList <T> list, int startIndex) { return(IListContext <T> .Slinq(list, startIndex, -1)); }
/// <summary> /// Returns a Slinq that enumerates over the elements of the specified list in descending order. /// Slinqs created by this method will chain removal operations to the underlying list. /// </summary> public static Slinq <T, IListContext <T> > SlinqDescending <T>(this IList <T> list) { return(IListContext <T> .Slinq(list, list.Count - 1, -1)); }
/// <summary> /// Returns a Slinq that enumerates over the element, index pairs of the specified list in ascending order. /// Slinqs created by this method will chain removal operations to the underlying list. /// </summary> public static Slinq <ValueTuple <T, int>, IListContext <T> > SlinqWithIndex <T>(this IList <T> list) { return(IListContext <T> .SlinqWithIndex(list, 0, 1)); }
/// <summary> /// Returns a Slinq that enumerates over the elements of the specified list in ascending order. /// Slinqs created by this method will chain removal operations to the underlying list. /// </summary> public static Slinq <T, IListContext <T> > Slinq <T>(this IList <T> list) { return(IListContext <T> .Slinq(list, 0, 1)); }
/// <summary> /// Returns a Slinq that enumerates over the element, index pairs of the specified list using the specified start index and step. /// If startIndex is outside the element range of the list, the resulting Slinq will be empty. /// Slinqs created by this method will chain removal operations to the underlying list. /// </summary> public static Slinq <ValueTuple <T, int>, IListContext <T> > SlinqWithIndex <T>(this IList <T> list, int startIndex, int step) { return(IListContext <T> .SlinqWithIndex(list, startIndex, step)); }
/// <summary> /// Returns a Slinq that enumerates over the element, index pairs of the specified list in ascending order starting with the specified index. /// /// If startIndex is outside the element range of the list, the resulting Slinq will be empty. /// /// Slinqs created by this method will chain removal operations to the underlying list. /// </summary> public static Slinq <Algebraics.Tuple <T, int>, IListContext <T> > SlinqWithIndex <T>(this IList <T> list, int startIndex) { return(IListContext <T> .SlinqWithIndex(list, startIndex, 1)); }