OptTAndT2(FuncOptT2) Method

Combines two options: this and lazyOther as follows:
  • returns Some of a tuple of both values if both options are Some;
  • returns None otherwise.
lazyOther is computed only if this is Some.

Definition

Namespace: Orx.Fun.Option
Assembly: Orx.Fun.Option (in Orx.Fun.Option.dll) Version: 1.2.1+ea79806fa5e0e04bfdaef2a1916930e75e2cde74
C#
public Opt<(T , T2 )> And<T2>(
	Func<Opt<T2>> lazyOther
)

Parameters

lazyOther  FuncOptT2
Other option to combine with; lazily evaluated only if this is Some.

Type Parameters

T2

[Missing <typeparam name="T2"/> documentation for "M:Orx.Fun.Option.Opt`1.And``1(System.Func{Orx.Fun.Option.Opt{``0}})"]

Return Value

OptValueTupleT, T2

See Also