Skip to content

M_CodeJam_Ranges_Range_1_TrimTo_1

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

Range(T).TrimTo Method (T)

Trims the range from the right.

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

Syntax

C#

public Range<T> TrimTo(
	T to
)

VB

Public Function TrimTo ( 
	to As T
) As Range(Of T)

F#

member TrimTo : 
        to : 'T -> Range<'T> 

Parameters

 

to
Type: T
A new value To.

Return Value

Type: Range(T)
A range with a new To boundary or the source fange if the new boundary is greater than original or an empty range if the new To boundary is less than From boundary of the range.

See Also

Reference

Range(T) Structure
TrimTo Overload
CodeJam.Ranges Namespace

Clone this wiki locally