onrails
    Preparing search index...

    Variable ofConst

    of: <T>(value: T) => Maybe<T> = some

    Fantasy Land of — alias of some.

    Type Declaration

      • <T>(value: T): Maybe<T>
      • Lifts a value into the Some branch.

        Type Parameters

        • T

        Parameters

        • value: T

        Returns Maybe<T>

        const m = some(1);   // Maybe<number>