Skip to content

Methods_T_CodeJam_Ranges_CompositeRangeExtensions

Andrew Koryavchenko edited this page Jun 17, 2018 · 3 revisions

CompositeRangeExtensions Methods

Methods

 

Name Description
Public method Static member GetComplementation(T)(Range(T)) Returns complementation composite range. Result range contains result of (infinityRange.Exclude(range).
Public method Static member GetComplementation(T, TKey)(Range(T, TKey)) Returns complementation composite range. Result range contains result of (infinityRange.Exclude(range).
Public method Static member ToCompositeRange(T)(Range(T)) Converts range to the composite range.
Public method Static member ToCompositeRange(T)(IEnumerable(Range(T))) Converts sequence of elements to the composite range.
Public method Static member ToCompositeRange(T, TKey)(Range(T, TKey)) Converts range to the composite range.
Public method Static member ToCompositeRange(T, TKey)(IEnumerable(Range(T, TKey))) Converts sequence of elements to the composite range.
Public method Static member ToCompositeRange(T, TKey)(IEnumerable(TKey), Func(TKey, T), Func(TKey, T)) Converts sequence of elements to the composite range.
Public method Static member ToCompositeRange(TSource, T, TKey)(IEnumerable(TSource), Func(TSource, T), Func(TSource, T), Func(TSource, TKey)) Converts sequence of elements to the composite range.
Public method Static member ToCompositeRangeFrom(TSource, T)(IEnumerable(TSource), Func(TSource, T)) Converts sequence of elements to the composite range using only From boundary. The To boundary value is taken from the next item in sequence (+∞ for the last item in sequence)
Public method Static member ToCompositeRangeFrom(TSource, T, TKey)(IEnumerable(TSource), Func(TSource, T), Func(TSource, TKey)) Converts sequence of elements to the composite range using only From boundary. The To boundary value is taken from the next item in sequence (+∞ for the last item in sequence)
Public method Static member ToCompositeRangeTo(TSource, T)(IEnumerable(TSource), Func(TSource, T)) Converts sequence of elements to the composite range using only To boundary. The From boundary value is taken from the previous item in sequence (-∞ for the last item in sequence).
Public method Static member ToCompositeRangeTo(TSource, T, TKey)(IEnumerable(TSource), Func(TSource, T), Func(TSource, TKey)) Converts sequence of elements to the composite range using only To boundary. The From boundary value is taken from the previous item in sequence (-∞ for the last item in sequence).
  Back to Top

See Also

Reference

CompositeRangeExtensions Class
CodeJam.Ranges Namespace

Clone this wiki locally