Skip to content

M_CodeJam_Ranges_CompositeRange_2_MakeExclusive

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

CompositeRange(T, TKey).MakeExclusive Method

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

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

Syntax

C#

public CompositeRange<T, TKey> MakeExclusive(
	Func<T, T> fromValueSelector,
	Func<T, T> toValueSelector
)

VB

Public Function MakeExclusive ( 
	fromValueSelector As Func(Of T, T),
	toValueSelector As Func(Of T, T)
) As CompositeRange(Of T, TKey)

F#

member MakeExclusive : 
        fromValueSelector : Func<'T, 'T> * 
        toValueSelector : Func<'T, 'T> -> CompositeRange<'T, 'TKey> 

Parameters

 

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

Return Value

Type: CompositeRange(T, TKey)
A range with exclusive boundaries.

See Also

Reference

CompositeRange(T, TKey) Structure
CodeJam.Ranges Namespace

Clone this wiki locally