/// <summary> /// Returns a new list without any consecutively repeating elements. Equality isdetermined by applying the supplied predicate to each pair of consecutive elements. Thefirst element in a series of equal elements will be preserved.Acts as a transducer if a transformer is given in list position. /// <para /> /// sig: (a, a -> Boolean) -> [a] -> [a] /// </summary> /// <param name="pred">A predicate used to test whether two items are equal.</param> /// <param name="list">The array to consider.</param> /// <returns>`list` without repeating elements.</returns> /// <see cref="R.Transduce"/> public static dynamic DropRepeatsWith(RamdaPlaceholder pred = null, RamdaPlaceholder list = null) { return(Currying.DropRepeatsWith(pred, list)); }
/// <summary> /// Returns a new list without any consecutively repeating elements. Equality isdetermined by applying the supplied predicate to each pair of consecutive elements. Thefirst element in a series of equal elements will be preserved.Acts as a transducer if a transformer is given in list position. /// <para /> /// sig: (a, a -> Boolean) -> [a] -> [a] /// </summary> /// <param name="pred">A predicate used to test whether two items are equal.</param> /// <param name="list">The array to consider.</param> /// <returns>`list` without repeating elements.</returns> /// <see cref="R.Transduce"/> public static dynamic DropRepeatsWith <TSource>(dynamic pred, IList <TSource> list) { return(Currying.DropRepeatsWith(Delegate(pred), list)); }
/// <summary> /// Returns a new list without any consecutively repeating elements. Equality isdetermined by applying the supplied predicate to each pair of consecutive elements. Thefirst element in a series of equal elements will be preserved.Acts as a transducer if a transformer is given in list position. /// <para /> /// sig: (a, a -> Boolean) -> [a] -> [a] /// </summary> /// <param name="pred">A predicate used to test whether two items are equal.</param> /// <param name="list">The array to consider.</param> /// <returns>`list` without repeating elements.</returns> /// <see cref="R.Transduce"/> public static dynamic DropRepeatsWith <TSource>(Func <TSource, TSource, bool> pred, RamdaPlaceholder list = null) { return(Currying.DropRepeatsWith(Delegate(pred), list)); }
/// <summary> /// Returns a new list without any consecutively repeating elements. Equality isdetermined by applying the supplied predicate to each pair of consecutive elements. Thefirst element in a series of equal elements will be preserved.Acts as a transducer if a transformer is given in list position. /// <para /> /// sig: (a, a -> Boolean) -> [a] -> [a] /// </summary> /// <param name="pred">A predicate used to test whether two items are equal.</param> /// <param name="list">The array to consider.</param> /// <returns>`list` without repeating elements.</returns> /// <see cref="R.Transduce"/> public static dynamic DropRepeatsWith(dynamic pred, RamdaPlaceholder list = null) { return(Currying.DropRepeatsWith(Delegate(pred), list)); }
/// <summary> /// Returns a new list without any consecutively repeating elements. Equality isdetermined by applying the supplied predicate to each pair of consecutive elements. Thefirst element in a series of equal elements will be preserved.Acts as a transducer if a transformer is given in list position. /// <para /> /// sig: (a, a -> Boolean) -> [a] -> [a] /// </summary> /// <param name="pred">A predicate used to test whether two items are equal.</param> /// <param name="list">The array to consider.</param> /// <returns>`list` without repeating elements.</returns> /// <see cref="R.Transduce"/> public static dynamic DropRepeatsWith <TSource>(RamdaPlaceholder pred, IList <TSource> list) { return(Currying.DropRepeatsWith(pred, list)); }