LanguageExt.Core

LanguageExt.Core Class Instances Functor

Contents

struct FArr <A, B> Source #

Fields

Methods

method Arr<B> Map (Arr<A> ma, Func<A, B> f) Source #

struct FArray <A, B> Source #

Fields

Methods

method B[] Map (A[] ma, Func<A, B> f) Source #

struct FEither <L, R, R2> Source #

Fields

field FEither<L, R, R2> Inst = default(FEither<L, R, R2>) Source #

Methods

method Either<L, R2> BiMap (Either<L, R> ma, Func<L, R2> fa, Func<R, R2> fb) Source #

method Either<L, R2> Map (Either<L, R> ma, Func<R, R2> f) Source #

struct FEitherBi <L, R, L2, R2> Source #

Fields

field FEitherBi<L, R, L2, R2> Inst = default(FEitherBi<L, R, L2, R2>) Source #

Methods

method Either<L2, R2> BiMap (Either<L, R> ma, Func<L, L2> fa, Func<R, R2> fb) Source #

struct FEitherAsync <L, R, R2> Source #

Methods

method EitherAsync<L, R2> Map (EitherAsync<L, R> ma, Func<R, R2> f) Source #

method EitherAsync<L, R2> MapAsync (EitherAsync<L, R> ma, Func<R, Task<R2>> f) Source #

struct FEitherUnsafe <L, R, R2> Source #

Fields

field FEitherUnsafe<L, R, R2> Inst = default Source #

Methods

method EitherUnsafe<L, R2> BiMap (EitherUnsafe<L, R> ma, Func<L, R2> fa, Func<R, R2> fb) Source #

method EitherUnsafe<L, R2> Map (EitherUnsafe<L, R> ma, Func<R, R2> f) Source #

struct FEitherUnsafeBi <L, R, L2, R2> Source #

Fields

field FEitherUnsafeBi<L, R, L2, R2> Inst = default Source #

Methods

method EitherUnsafe<L2, R2> BiMap (EitherUnsafe<L, R> ma, Func<L, L2> fa, Func<R, R2> fb) Source #

struct FEnumerable <A, B> Source #

Fields

field FEnumerable<A, B> Inst = default(FEnumerable<A, B>) Source #

Methods

method IEnumerable<B> Map (IEnumerable<A> ma, Func<A, B> f) Source #

struct FFin <A, B> Source #

Fields

Methods

method Fin<B> BiMap (Fin<A> ma, Func<A, B> fa, Func<Error, B> fb) Source #

method Fin<B> BiMap (Fin<A> ma, Func<A, B> fa, Func<Error, Error> fb) Source #

method Fin<B> Map (Fin<A> ma, Func<A, B> f) Source #

struct FHashMap <K, A, B> Source #

Fields

field FHashMap<K, A, B> Inst = default(FHashMap<K, A, B>) Source #

Methods

method HashMap<K, B> Map (HashMap<K, A> ma, Func<A, B> f) Source #

struct FHashMap <EqK, K, A, B> Source #

where EqK : struct, Eq<K>

Fields

field FHashMap<EqK, K, A, B> Inst = default(FHashMap<EqK, K, A, B>) Source #

Methods

method HashMap<EqK, K, B> Map (HashMap<EqK, K, A> ma, Func<A, B> f) Source #

struct FHashSet <A, B> Source #

Fields

Methods

method HashSet<B> Map (HashSet<A> ma, Func<A, B> f) Source #

struct FLst <A, B> Source #

Fields

Methods

method Lst<B> Map (Lst<A> ma, Func<A, B> f) Source #

struct FMap <K, A, B> Source #

Fields

Methods

method Map<K, B> Map (Map<K, A> ma, Func<A, B> f) Source #

struct FMap <OrdK, K, A, B> Source #

where OrdK : struct, Ord<K>

Fields

field FMap<OrdK, K, A, B> Inst = default(FMap<OrdK, K, A, B>) Source #

Methods

method Map<OrdK, K, B> Map (Map<OrdK, K, A> ma, Func<A, B> f) Source #

struct FNullable <A, B> Source #

where A : struct
where B : struct

Fields

Methods

method B? BiMap (A? ma, Func<A, B> fa, Func<Unit, B> fb) Source #

method B? Map (A? ma, Func<A, B> f) Source #

struct FOption <A, B> Source #

Fields

Methods

method Option<B> BiMap (Option<A> ma, Func<A, B> fa, Func<Unit, B> fb) Source #

method Option<B> Map (Option<A> ma, Func<A, B> f) Source #

struct FOptional <OptionalA, OptionalB, OA, OB, A, B> Source #

where OptionalA : struct, Optional<OA, A>
where OptionalB : struct, Optional<OB, B>

Fields

field FOptional<OptionalA, OptionalB, OA, OB, A, B> Inst = default(FOptional<OptionalA, OptionalB, OA, OB, A, B>) Source #

Methods

method OB BiMap (OA ma, Func<A, B> fa, Func<Unit, B> fb) Source #

method OB Map (OA ma, Func<A, B> f) Source #

struct FOptionalUnsafe <OptionalA, OptionalB, OA, OB, A, B> Source #

where OptionalA : struct, OptionalUnsafe<OA, A>
where OptionalB : struct, OptionalUnsafe<OB, B>

Fields

field FOptionalUnsafe<OptionalA, OptionalB, OA, OB, A, B> Inst = default(FOptionalUnsafe<OptionalA, OptionalB, OA, OB, A, B>) Source #

Methods

method OB BiMap (OA ma, Func<A, B> fa, Func<Unit, B> fb) Source #

method OB Map (OA ma, Func<A, B> f) Source #

struct FOptionAsync <A, B> Source #

Fields

field FOptionAsync<A, B> Inst = default(FOptionAsync<A, B>) Source #

Methods

method OptionAsync<B> Map (OptionAsync<A> ma, Func<A, B> f) Source #

method OptionAsync<B> MapAsync (OptionAsync<A> ma, Func<A, Task<B>> f) Source #

struct FOptionUnsafe <A, B> Source #

Fields

field FOptionUnsafe<A, B> Inst = default(FOptionUnsafe<A, B>) Source #

Methods

method OptionUnsafe<B> BiMap (OptionUnsafe<A> ma, Func<A, B> fa, Func<Unit, B> fb) Source #

method OptionUnsafe<B> Map (OptionUnsafe<A> ma, Func<A, B> f) Source #

struct FQue <A, B> Source #

Fields

Methods

method Que<B> Map (Que<A> ma, Func<A, B> f) Source #

struct FSeq <A, B> Source #

Fields

Methods

method Seq<B> Map (Seq<A> ma, Func<A, B> f) Source #

struct FSet <A, B> Source #

Fields

Methods

method Set<B> Map (Set<A> ma, Func<A, B> f) Source #

struct FSet <OrdA, OrdB, A, B> Source #

where OrdA : struct, Ord<A>
where OrdB : struct, Ord<B>

Fields

field FSet<OrdA, OrdB, A, B> Inst = default(FSet<OrdA, OrdB, A, B>) Source #

Methods

method Set<OrdB, B> Map (Set<OrdA, A> ma, Func<A, B> f) Source #

struct FStck <A, B> Source #

Fields

Methods

method Stck<B> Map (Stck<A> ma, Func<A, B> f) Source #

struct FTask <A, B> Source #

Fields

Methods

method Task<B> Map (Task<A> ma, Func<A, B> f) Source #

method Task<B> MapAsync (Task<A> ma, Func<A, Task<B>> f) Source #

struct FTry <A, B> Source #

Fields

Methods

method Try<B> BiMap (Try<A> ma, Func<A, B> fa, Func<Unit, B> fb) Source #

method Try<B> Map (Try<A> ma, Func<A, B> f) Source #

struct FTryAsync <A, B> Source #

Fields

Methods

method TryAsync<B> Map (TryAsync<A> ma, Func<A, B> f) Source #

method TryAsync<B> MapAsync (TryAsync<A> ma, Func<A, Task<B>> f) Source #

struct FTryOption <A, B> Source #

Fields

field FTryOption<A, B> Inst = default(FTryOption<A, B>) Source #

Methods

method TryOption<B> BiMap (TryOption<A> ma, Func<A, B> fa, Func<Unit, B> fb) Source #

method TryOption<B> Map (TryOption<A> ma, Func<A, B> f) Source #

struct FTryOptionAsync <A, B> Source #

Fields

field FTryOptionAsync<A, B> Inst = default(FTryOptionAsync<A, B>) Source #

Methods

method TryOptionAsync<B> Map (TryOptionAsync<A> ma, Func<A, B> f) Source #

method TryOptionAsync<B> MapAsync (TryOptionAsync<A> ma, Func<A, Task<B>> f) Source #

struct FTupleBi <A, B, U, V> Source #

Maps the first item in a tuple 2

Parameters

type A

First item source type

type B

Second item source type

type U

First item source target type

type V

Second item source target type

Fields

field FTupleBi<A, B, U, V> Inst = default(FTupleBi<A, B, U, V>) Source #

Methods

method ValueTuple<U, V> BiMap (ValueTuple<A, B> ma, Func<A, U> fa, Func<B, V> fb) Source #

Maps both items in the tuple

Parameters

param ma

Source tuple

param fa

First item mapping operation

param fb

Second item mapping operation

returns

Target tuple

method Tuple<U, V> BiMap (Tuple<A, B> ma, Func<A, U> fa, Func<B, V> fb) Source #

Maps both items in the tuple

Parameters

param ma

Source tuple

param fa

First item mapping operation

param fb

Second item mapping operation

returns

Target tuple

struct FTupleFst <A, B, R> Source #

Maps the first item in a tuple 2

Parameters

type A

First item type

type B

Second item type

type R

Target type

Fields

field FTupleFst<A, B, R> Inst = default(FTupleFst<A, B, R>) Source #

Methods

method Tuple<R, B> Map (Tuple<A, B> ma, Func<A, R> f) Source #

Maps the third item in a tuple 3

Parameters

param ma

Source tuple

param f

Mapping function

returns

Target tuple

method ValueTuple<R, B> Map (ValueTuple<A, B> ma, Func<A, R> f) Source #

Maps the third item in a tuple 3

Parameters

param ma

Source tuple

param f

Mapping function

returns

Target tuple

struct FTupleFst <A, B, C, R> Source #

Maps the first item in a tuple 3

Parameters

type A

First item type

type B

Second item type

type C

Third item type

type R

Target type

Fields

field FTupleFst<A, B, C, R> Inst = default(FTupleFst<A, B, C, R>) Source #

Methods

method Tuple<R, B, C> Map (Tuple<A, B, C> ma, Func<A, R> f) Source #

Maps the third item in a tuple 3

Parameters

param ma

Source tuple

param f

Mapping function

returns

Target tuple

method ValueTuple<R, B, C> Map (ValueTuple<A, B, C> ma, Func<A, R> f) Source #

Maps the third item in a tuple 3

Parameters

param ma

Source tuple

param f

Mapping function

returns

Target tuple

struct FTupleSnd <A, B, R> Source #

Maps the second item in a tuple 2

Parameters

type A

First item type

type B

Second item type

type R

Target type

Fields

field FTupleSnd<A, B, R> Inst = default(FTupleSnd<A, B, R>) Source #

Methods

method ValueTuple<A, R> Map (ValueTuple<A, B> ma, Func<B, R> f) Source #

Maps the third item in a tuple 3

Parameters

param ma

Source tuple

param f

Mapping function

returns

Target tuple

method Tuple<A, R> Map (Tuple<A, B> ma, Func<B, R> f) Source #

Maps the third item in a tuple 3

Parameters

param ma

Source tuple

param f

Mapping function

returns

Target tuple

struct FTupleSnd <A, B, C, R> Source #

Maps the second item in a tuple 3

Parameters

type A

First item type

type B

Second item type

type C

Third item type

type R

Target type

Fields

field FTupleSnd<A, B, C, R> Inst = default(FTupleSnd<A, B, C, R>) Source #

Methods

method ValueTuple<A, R, C> Map (ValueTuple<A, B, C> ma, Func<B, R> f) Source #

Maps the third item in a tuple 3

Parameters

param ma

Source tuple

param f

Mapping function

returns

Target tuple

method Tuple<A, R, C> Map (Tuple<A, B, C> ma, Func<B, R> f) Source #

Maps the third item in a tuple 3

Parameters

param ma

Source tuple

param f

Mapping function

returns

Target tuple

struct FTupleThrd <A, B, C, R> Source #

Maps the third item in a tuple 3

Parameters

type A

First item type

type B

Second item type

type C

Third item type

type R

Target type

Fields

field FTupleThrd<A, B, C, R> Inst = default(FTupleThrd<A, B, C, R>) Source #

Methods

method ValueTuple<A, B, R> Map (ValueTuple<A, B, C> ma, Func<C, R> f) Source #

Maps the third item in a tuple 3

Parameters

param ma

Source tuple

param f

Mapping function

returns

Target tuple

method Tuple<A, B, R> Map (Tuple<A, B, C> ma, Func<C, R> f) Source #

Maps the third item in a tuple 3

Parameters

param ma

Source tuple

param f

Mapping function

returns

Target tuple

struct FTupleTri <A, B, C, T, U, V> Source #

Maps the first item in a tuple 2

Parameters

type A

First item source type

type B

Second item source type

type U

First item source target type

type V

Second item source target type

Fields

field FTupleTri<A, B, C, T, U, V> Inst = default(FTupleTri<A, B, C, T, U, V>) Source #

Methods

method ValueTuple<T, U, V> TriMap (ValueTuple<A, B, C> ma, Func<A, T> fa, Func<B, U> fb, Func<C, V> fc) Source #

Maps all three items in the tuple

Parameters

param ma

Source tuple

param fa

First item mapping operation

param fb

Second item mapping operation

param fc

Third item mapping operation

returns

Target tuple

method Tuple<T, U, V> TriMap (Tuple<A, B, C> ma, Func<A, T> fa, Func<B, U> fb, Func<C, V> fc) Source #

Maps all three items in the tuple

Parameters

param ma

Source tuple

param fa

First item mapping operation

param fb

Second item mapping operation

param fc

Third item mapping operation

returns

Target tuple

struct FValidation <MonoidFail, FAIL, SUCCESS, SUCCESS2> Source #

where MonoidFail : struct, Monoid<FAIL>, Eq<FAIL>

Fields

field FValidation<MonoidFail, FAIL, SUCCESS, SUCCESS2> Inst = default(FValidation<MonoidFail, FAIL, SUCCESS, SUCCESS2>) Source #

Methods

method Validation<MonoidFail, FAIL, SUCCESS2> BiMap (Validation<MonoidFail, FAIL, SUCCESS> ma, Func<FAIL, SUCCESS2> fa, Func<SUCCESS, SUCCESS2> fb) Source #

method Validation<MonoidFail, FAIL, SUCCESS2> Map (Validation<MonoidFail, FAIL, SUCCESS> ma, Func<SUCCESS, SUCCESS2> f) Source #

struct FValidationBi <MonoidFail, FAIL, SUCCESS, MonoidFail2, FAIL2, SUCCESS2> Source #

where MonoidFail : struct, Monoid<FAIL>, Eq<FAIL>
where MonoidFail2 : struct, Monoid<FAIL2>, Eq<FAIL2>

Fields

field FValidationBi<MonoidFail, FAIL, SUCCESS, MonoidFail2, FAIL2, SUCCESS2> Inst = default(FValidationBi<MonoidFail, FAIL, SUCCESS, MonoidFail2, FAIL2, SUCCESS2>) Source #

Methods

method Validation<MonoidFail2, FAIL2, SUCCESS2> BiMap (Validation<MonoidFail, FAIL, SUCCESS> ma, Func<FAIL, FAIL2> fa, Func<SUCCESS, SUCCESS2> fb) Source #

struct FValidation <FAIL, SUCCESS, SUCCESS2> Source #

Fields

field FValidation<FAIL, SUCCESS, SUCCESS2> Inst = default(FValidation<FAIL, SUCCESS, SUCCESS2>) Source #

Methods

method Validation<FAIL, SUCCESS2> BiMap (Validation<FAIL, SUCCESS> ma, Func<Seq<FAIL>, SUCCESS2> fa, Func<SUCCESS, SUCCESS2> fb) Source #

method Validation<FAIL, SUCCESS2> Map (Validation<FAIL, SUCCESS> ma, Func<SUCCESS, SUCCESS2> f) Source #

struct FValidationBi <FAIL, SUCCESS, FAIL2, SUCCESS2> Source #

Fields

field FValidationBi<FAIL, SUCCESS, FAIL2, SUCCESS2> Inst = default(FValidationBi<FAIL, SUCCESS, FAIL2, SUCCESS2>) Source #

Methods

method Validation<FAIL2, SUCCESS2> BiMap (Validation<FAIL, SUCCESS> ma, Func<FAIL, FAIL2> fa, Func<SUCCESS, SUCCESS2> fb) Source #

struct FValueTask <A, B> Source #

Fields

field FValueTask<A, B> Inst = default(FValueTask<A, B>) Source #

Methods

method ValueTask<B> Map (ValueTask<A> ma, Func<A, B> f) Source #

method ValueTask<B> MapAsync (ValueTask<A> ma, Func<A, Task<B>> f) Source #