Options
All
  • Public
  • Public/Protected
  • All
Menu

Type class instances provided by default for Option.

Hierarchy

  • TryInstances

Implements

Index

Properties

followedBy

followedBy: function

Type declaration

    • <A, B>(fa: TryK<A>, fb: TryK<B>): Try<B>
    • Type parameters

      • A

      • B

      Parameters

      Returns Try<B>

followedByL

followedByL: function

Type declaration

    • <A, B>(fa: TryK<A>, fb: function): Try<B>
    • Type parameters

      • A

      • B

      Parameters

      Returns Try<B>

forEffect

forEffect: function

Type declaration

    • <A, B>(fa: TryK<A>, fb: TryK<B>): Try<A>
    • Type parameters

      • A

      • B

      Parameters

      Returns Try<A>

forEffectL

forEffectL: function

Type declaration

    • <A, B>(fa: TryK<A>, fb: function): Try<A>
    • Type parameters

      • A

      • B

      Parameters

      Returns Try<A>

Static global

global: TryInstances = new TryInstances()

Methods

ap

  • ap<A, B>(fa: TryK<A>, ff: TryK<function>): Try<B>

attempt

  • attempt<A>(fa: TryK<A>): Try<Either<Throwable, A>>
  • Type parameters

    • A

    Parameters

    Returns Try<Either<Throwable, A>>

coflatMap

  • coflatMap<A, B>(fa: TryK<A>, ff: function): Try<B>
  • Type parameters

    • A

    • B

    Parameters

    • fa: TryK<A>
    • ff: function
        • Parameters

          Returns B

    Returns Try<B>

coflatten

  • coflatten<A>(fa: TryK<A>): Try<Try<A>>

eqv

  • eqv(lh: Try<any>, rh: Try<any>): boolean
  • Parameters

    • lh: Try<any>
    • rh: Try<any>

    Returns boolean

flatMap

  • flatMap<A, B>(fa: TryK<A>, f: function): Try<B>
  • Type parameters

    • A

    • B

    Parameters

    • fa: TryK<A>
    • f: function
        • Parameters

          • a: A

          Returns TryK<B>

    Returns Try<B>

map

  • map<A, B>(fa: TryK<A>, f: function): Try<B>
  • Type parameters

    • A

    • B

    Parameters

    • fa: TryK<A>
    • f: function
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    Returns Try<B>

map2

  • map2<A, B, Z>(fa: TryK<A>, fb: TryK<B>, f: function): Try<Z>
  • Type parameters

    • A

    • B

    • Z

    Parameters

    • fa: TryK<A>
    • fb: TryK<B>
    • f: function
        • (a: A, b: B): Z
        • Parameters

          • a: A
          • b: B

          Returns Z

    Returns Try<Z>

product

  • product<A, B>(fa: TryK<A>, fb: TryK<B>): Try<[A, B]>

pure

  • pure<A>(a: A): Try<A>

raise

  • raise<A>(e: any): Try<A>
  • Type parameters

    • A

    Parameters

    • e: any

    Returns Try<A>

recover

  • recover<A>(fa: TryK<A>, f: function): Try<A>
  • Type parameters

    • A

    Parameters

    • fa: TryK<A>
    • f: function
        • (e: Throwable): A
        • Parameters

          • e: Throwable

          Returns A

    Returns Try<A>

recoverWith

  • recoverWith<A>(fa: TryK<A>, f: function): Try<A>
  • Type parameters

    • A

    Parameters

    • fa: TryK<A>
    • f: function
        • (e: Throwable): TryK<A>
        • Parameters

          • e: Throwable

          Returns TryK<A>

    Returns Try<A>

tailRecM

  • tailRecM<A, B>(a: A, f: function): Try<B>
  • Type parameters

    • A

    • B

    Parameters

    • a: A
    • f: function
        • (a: A): TryK<Either<A, B>>
        • Parameters

          • a: A

          Returns TryK<Either<A, B>>

    Returns Try<B>

unit

  • unit(): Try<void>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc