Skip to content

M_CodeJam_Ranges_CompositeRange_1_Intersect_2

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

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

VB

Public Function Intersect ( 
	from As T,
	to As T
) As CompositeRange(Of T)

F#

member Intersect : 
        from : 'T * 
        to : 'T -> CompositeRange<'T> 

Parameters

 

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

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