@mikuroxina/mini-fn
    Preparing search index...

    Function withReaderT

    • Maps the record of environment by mapper. Note that the mapping is a contravariant.

      Type Parameters

      • R1
      • R2

      Parameters

      • mapper: (record: R1) => R2

        The transformer from new record to old record.

      Returns <M, A>(r: ReaderT<R2, M, A>) => ReaderT<R1, M, A>

      The mapped environment.