Skip to content

M_CodeJam_Ranges_Range_2_MakeInclusive

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

Range(T, TKey).MakeInclusive Method

Replaces exclusive boundaries with inclusive ones with the values from the selector callbacks

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

Syntax

C#

public Range<T, TKey> MakeInclusive(
	Func<T, T> fromValueSelector,
	Func<T, T> toValueSelector
)

VB

Public Function MakeInclusive ( 
	fromValueSelector As Func(Of T, T),
	toValueSelector As Func(Of T, T)
) As Range(Of T, TKey)

F#

member MakeInclusive : 
        fromValueSelector : Func<'T, 'T> * 
        toValueSelector : Func<'T, 'T> -> Range<'T, 'TKey> 

Parameters

 

fromValueSelector
Type: System.Func(T, T)
Callback to obtain a new value for the From boundary. Used if the boundary is exclusive.
toValueSelector
Type: System.Func(T, T)
Callback to obtain a new value for the To boundary. Used if the boundary is exclusive.

Return Value

Type: Range(T, TKey)
A range with inclusive boundaries.

See Also

Reference

Range(T, TKey) Structure
CodeJam.Ranges Namespace

Clone this wiki locally