@ryandur/sand
    Preparing search index...

    Type Alias Some<THING>

    type Some<THING> = {
        isNothing: false;
        and<NEW_THING>(other: Maybe<NEW_THING>): Maybe<[THING, NEW_THING]>;
        either<ON_SOME, ON_NOTHING>(
            onSome: (thing: THING) => ON_SOME,
            onNothing: () => ON_NOTHING,
        ): ON_SOME | ON_NOTHING;
        inspect(): string;
        map<NEW_THING>(f: (value: THING) => NEW_THING): Some<NEW_THING>;
        mBind<NEW_THING>(f: (value: THING) => Maybe<NEW_THING>): Maybe<NEW_THING>;
        or(f: () => Maybe<THING>): Maybe<THING>;
        orElse<FALLBACK>(fallback: FALLBACK): THING;
        orNull(): THING;
        toResult<ERROR>(fallback: ERROR): Result<THING, ERROR>;
    }

    Type Parameters

    • THING
    Index
    isNothing: false