Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReaderM<A, Config>

Type parameters

  • A

  • Config: any

Hierarchy

  • ReaderM

Implements

  • Functor<A, any, Reader<A, Config>>

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ReaderM(value: (a: Config) => A): ReaderM
  • Parameters

    • value: (a: Config) => A
        • (a: Config): A
        • Parameters

          • a: Config

          Returns A

    Returns ReaderM

Properties

Readonly type

type: string = "Reader"

Readonly value

value: (a: Config) => A

Type declaration

    • (a: Config): A
    • Parameters

      • a: Config

      Returns A

Methods

ap

  • ap<B>(fa: Reader<(a: A) => B, undefined>): Reader<B, Config>

flatMap

  • flatMap<B>(f: (x: A) => Reader<B, Config>): Reader<B, Config>

get

  • get(config: Config): A

map

  • map<B>(f: (x: A) => B): Reader<B, Config>
  • Type parameters

    • B

    Parameters

    • f: (x: A) => B
        • (x: A): B
        • Parameters

          • x: A

          Returns B

    Returns Reader<B, Config>

run

  • run(config: Config): A

zip

Generated using TypeDoc