Skip to content

M_CodeJam_Ranges_CompositeRange_1_Intersect__1_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 1 revision

CompositeRange(T).Intersect(TKey2) Method (Range(T, TKey2))

Returns an intersection of the the ranges.

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

Syntax

C#

public CompositeRange<T> Intersect<TKey2>(
	Range<T, TKey2> other
)

VB

Public Function Intersect(Of TKey2) ( 
	other As Range(Of T, TKey2)
) As CompositeRange(Of T)

F#

member Intersect : 
        other : Range<'T, 'TKey2> -> CompositeRange<'T> 

Parameters

 

other
Type: CodeJam.Ranges.Range(T, TKey2)
The range to intersect with.

Type Parameters

 

TKey2
The type of the other range key

Return Value

Type: CompositeRange(T)
An intersection range or empty range if the ranges do not intersect.

See Also

Reference

CompositeRange(T) Structure
Intersect Overload
CodeJam.Ranges Namespace

Clone this wiki locally