Pacote
    Preparing search index...

    Function map

    • Maps an Option<T> to Option<U> by applying a function to a contained value.

      Type Parameters

      • T
      • U

      Parameters

      • fn: (value: T) => U

        Mapping function.

      • option: Option<T>

        Option to map.

      Returns Option<U>

      Mapped Option.