Пример #1
0
        HoistRandom <TRng, TValue>(
            RandomCxt <TRng> _cxt,
            Maybe <TValue> value)
        {
            var m = new MaybeT <Random <TRng, TValue>, Random <TRng, Maybe <TValue> >, Maybe <TValue>, TValue>();

            return((MaybeT <Random <TRng, TValue>, Random <TRng, Maybe <TValue> >, Maybe <TValue>, TValue>)m.Hoist(value));
        }
Пример #2
0
        HoistReader <TEnvironment, TValue>(
            ReaderCxt <TEnvironment> _cxt,
            Maybe <TValue> value)
        {
            var m = new MaybeT <Reader <TEnvironment, TValue>, Reader <TEnvironment, Maybe <TValue> >, Maybe <TValue>, TValue>();

            return((MaybeT <Reader <TEnvironment, TValue>, Reader <TEnvironment, Maybe <TValue> >, Maybe <TValue>, TValue>)m.Hoist(value));
        }
Пример #3
0
        HoistIdentity <TValue>(
            Maybe <TValue> value)
        {
            var m = new MaybeT <Identity <TValue>, Identity <Maybe <TValue> >, Maybe <TValue>, TValue>();

            return((MaybeT <Identity <TValue>, Identity <Maybe <TValue> >, Maybe <TValue>, TValue>)m.Hoist(value));
        }
Пример #4
0
        HoistIo <TValue>(
            Maybe <TValue> value)
        {
            var m = new MaybeT <Io <TValue>, Io <Maybe <TValue> >, Maybe <TValue>, TValue>();

            return((MaybeT <Io <TValue>, Io <Maybe <TValue> >, Maybe <TValue>, TValue>)m.Hoist(value));
        }
Пример #5
0
        HoistFuncSet <TValue>(
            Maybe <TValue> value)
        {
            var m = new MaybeT <FuncSet <TValue>, FuncSet <Maybe <TValue> >, Maybe <TValue>, TValue>();

            return((MaybeT <FuncSet <TValue>, FuncSet <Maybe <TValue> >, Maybe <TValue>, TValue>)m.Hoist(value));
        }
Пример #6
0
        HoistEither <TLeft, TValue>(
            EitherCxt <TLeft> _cxt,
            Maybe <TValue> value)
        {
            var m = new MaybeT <Either <TLeft, TValue>, Either <TLeft, Maybe <TValue> >, Maybe <TValue>, TValue>();

            return((MaybeT <Either <TLeft, TValue>, Either <TLeft, Maybe <TValue> >, Maybe <TValue>, TValue>)m.Hoist(value));
        }
Пример #7
0
        HoistWriter <TOutput, TMonoid, TValue>(
            WriterCxt <TOutput, TMonoid> _cxt,
            Maybe <TValue> value)
            where TMonoid : IMonoid <TOutput>
        {
            var m = new MaybeT <Writer <TOutput, TValue, TMonoid>, Writer <TOutput, Maybe <TValue>, TMonoid>, Maybe <TValue>, TValue>();

            return((MaybeT <Writer <TOutput, TValue, TMonoid>, Writer <TOutput, Maybe <TValue>, TMonoid>, Maybe <TValue>, TValue>)m.Hoist(value));
        }
Пример #8
0
        HoistState <TState, TValue>(
            StateCxt <TState> _cxt,
            Maybe <TValue> value)
        {
            var m = new MaybeT <State <TState, TValue>, State <TState, Maybe <TValue> >, Maybe <TValue>, TValue>();

            return((MaybeT <State <TState, TValue>, State <TState, Maybe <TValue> >, Maybe <TValue>, TValue>)m.Hoist(value));
        }
Пример #9
0
        HoistRws <TEnvironment, TOutput, TMonoid, TState, TValue>(
            RwsCxt <TEnvironment, TOutput, TMonoid, TState> _cxt,
            Maybe <TValue> value)
            where TMonoid : IMonoid <TOutput>
        {
            var m = new MaybeT <Rws <TEnvironment, TOutput, TMonoid, TState, TValue>, Rws <TEnvironment, TOutput, TMonoid, TState, Maybe <TValue> >, Maybe <TValue>, TValue>();

            return((MaybeT <Rws <TEnvironment, TOutput, TMonoid, TState, TValue>, Rws <TEnvironment, TOutput, TMonoid, TState, Maybe <TValue> >, Maybe <TValue>, TValue>)m.Hoist(value));
        }