Skip to content

M_CodeJam_Ranges_Range_1_Intersect

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

Range(T).Intersect Method (Range(T))

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> Intersect(
	Range<T> other
)

VB

Public Function Intersect ( 
	other As Range(Of T)
) As Range(Of T)

F#

member Intersect : 
        other : Range<'T> -> Range<'T> 

Parameters

 

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

Return Value

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

See Also

Reference

Range(T) Structure
Intersect Overload
CodeJam.Ranges Namespace

Clone this wiki locally