/// <summary>
 /// Converts a single value into a sorted sequence containing that value an infinite number of times. The sequence is treated as though it were sorted by the specified comparison delegate.
 /// </summary>
 /// <typeparam name="T">The type of the value.</typeparam>
 /// <param name="source">The value.</param>
 /// <param name="comparer">The comparison delegate that defines how the sequence is sorted.</param>
 /// <returns>A sorted sequence containing an infinite number of elements, all equal to <paramref name="source"/>.</returns>
 public static ISortedEnumerable <T> Repeat <T>(T source, Func <T, T, int> comparer)
 {
     return(new SortedEnumerableWrapper <T>(EnumerableSource.Repeat(source), A.Comparer(comparer)));
 }
 /// <summary>
 /// Converts a single value into a sorted sequence containing that value the specified number of times. The sequence is treated as though it were sorted by the specified comparison object.
 /// </summary>
 /// <typeparam name="T">The type of the value.</typeparam>
 /// <param name="source">The value.</param>
 /// <param name="comparer">The comparison object that defines how the sequence is sorted.</param>
 /// <param name="count">The number of times <paramref name="source"/> is repeated. If <paramref name="count"/> is less than or equal to 0, an empty sequence is returned.</param>
 /// <returns>A sorted sequence containing <paramref name="count"/> elements, all equal to <paramref name="source"/>.</returns>
 public static ISortedEnumerable <T> Repeat <T>(T source, IComparer <T> comparer, int count)
 {
     return(new SortedEnumerableWrapper <T>(EnumerableSource.Repeat(source, count), comparer));
 }
 /// <summary>
 /// Converts a single value into a sorted sequence containing that value an infinite number of times. The sequence is treated as though it were sorted by the default comparison object.
 /// </summary>
 /// <typeparam name="T">The type of the value.</typeparam>
 /// <param name="source">The value.</param>
 /// <returns>A sorted sequence containing an infinite number of elements, all equal to <paramref name="source"/>.</returns>
 public static ISortedEnumerable <T> Repeat <T>(T source)
 {
     return(new SortedEnumerableWrapper <T>(EnumerableSource.Repeat(source), Comparer <T> .Default));
 }