Skip to content

M_CodeJam_Ranges_Range_2_Intersect_1

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

Range(T, TKey).Intersect Method (T, 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, TKey> Intersect(
	T from,
	T to
)

VB

Public Function Intersect ( 
	from As T,
	to As T
) As Range(Of T, TKey)

F#

member Intersect : 
        from : 'T * 
        to : 'T -> Range<'T, 'TKey> 

Parameters

 

from
Type: T
The boundary From value.
to
Type: T
The boundary To value.

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