Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "hs/array/map/index"

Index

Functions

Functions

map

  • Works similarly to Array.map but accepts hyper-array. It returns a hyper-value of new array of new type (new type is the result type of map function) that always equals to result of applying Array.map method to the original array It takes hyper-value of T[] and return a hyper-value of R[], while map function is (item: T) => R

    Type parameters

    • T

      type of hyper-array item

    • R

      type of map function results

    Parameters

    • hs: HyperScope

      HyperScope instance

    • hv: HyperValue<T[]>

      hyper-array

    • mapFn: IteratorFn<T, R>

      function to be called for each item

    Returns HyperValue<R[]>

Generated using TypeDoc