Skip to content

M_CodeJam_Ranges_Range_2_Intersect__1

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

Range(T, TKey).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 Range<T, TKey> Intersect<TKey2>(
	Range<T, TKey2> other
)

VB

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

F#

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

Parameters

 

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

Type Parameters

 

TKey2
The type of the key of another range.

Return Value

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

See Also

Reference

Range(T, TKey) Structure
Intersect Overload
CodeJam.Ranges Namespace

Clone this wiki locally