Skip to content

T_CodeJam_Ranges_CompositeRangeExtensions

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

CompositeRangeExtensions Class

Extension methods for CompositeRange(T).

Extension methods for .

Extension methods for .

Inheritance Hierarchy

System.Object
  CodeJam.Ranges.CompositeRangeExtensions
Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static class CompositeRangeExtensions

VB

<ExtensionAttribute>
Public NotInheritable Class CompositeRangeExtensions

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type CompositeRangeExtensions =  class end

Methods

 

Name Description
Public methodStatic member GetComplementation(T)(Range(T)) Returns complementation composite range. Result range contains result of (infinityRange.Exclude(range).
Public methodStatic member GetComplementation(T, TKey)(Range(T, TKey)) Returns complementation composite range. Result range contains result of (infinityRange.Exclude(range).
Public methodStatic member ToCompositeRange(T)(Range(T)) Converts range to the composite range.
Public methodStatic member ToCompositeRange(T)(IEnumerable(Range(T))) Converts sequence of elements to the composite range.
Public methodStatic member ToCompositeRange(T, TKey)(Range(T, TKey)) Converts range to the composite range.
Public methodStatic member ToCompositeRange(T, TKey)(IEnumerable(Range(T, TKey))) Converts sequence of elements to the composite range.
Public methodStatic member ToCompositeRange(T, TKey)(IEnumerable(TKey), Func(TKey, T), Func(TKey, T)) Converts sequence of elements to the composite range.
Public methodStatic 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 methodStatic 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 methodStatic 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 methodStatic 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 methodStatic 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

CodeJam.Ranges Namespace
CodeJam.Ranges.CompositeRange(T)
CodeJam.Ranges.CompositeRange(T)

Clone this wiki locally