OptionExtensionsSomeIfT(Boolean, FuncT) Method

Lazy-in-evaluating-value counterpart of SomeIfT(Boolean, T).

Definition

Namespace: Orx.Fun.Option
Assembly: Orx.Fun.Option (in Orx.Fun.Option.dll) Version: 1.2.1+ea79806fa5e0e04bfdaef2a1916930e75e2cde74
C#
public static Opt<T> SomeIf<T>(
	bool someCondition,
	Func<T> lazyValue
)

Parameters

someCondition  Boolean
Condition that must hold for the return value to be Some(value).
lazyValue  FuncT
Underlying value of the Some variant to be evaluated and returned if someCondition holds.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Orx.Fun.Option.OptionExtensions.SomeIf``1(System.Boolean,System.Func{``0})"]

Return Value

OptT

See Also