Skip to content

M_CodeJam_Ranges_RangeBoundaryFrom_1_WithValue

Andrew Koryavchenko edited this page Jun 17, 2018 · 4 revisions

RangeBoundaryFrom(T).WithValue Method (Func(T, T))

Creates a new boundary with updated value (if the current boundary has one). If the boundary has no value the method returns the boundary unchanged.

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

Syntax

C#

public RangeBoundaryFrom<T> WithValue(
	Func<T, T> newValueSelector
)

VB

Public Function WithValue ( 
	newValueSelector As Func(Of T, T)
) As RangeBoundaryFrom(Of T)

F#

member WithValue : 
        newValueSelector : Func<'T, 'T> -> RangeBoundaryFrom<'T> 

Parameters

 

newValueSelector
Type: System.Func(T, T)
Callback to obtain a new value for the boundary. Used if the boundary has a value.

Return Value

Type: RangeBoundaryFrom(T)
Range boundary with the same kind but with a new value (if the current boundary has one).

See Also

Reference

RangeBoundaryFrom(T) Structure
WithValue Overload
CodeJam.Ranges Namespace

Clone this wiki locally