Explorer

core.list-map

description
Apply f to each item of a list of T and return the list of U (higher-order map). T and U are type arguments: core.list-map(T: number, U: string, f: ..., xs: ...)
type
Fn(T: Type, U: Type, f: Fn(item: Param("T")) -> Param("U"), xs: List<Param("T")>) -> List<Param("U")>
expression
fn(T$0, U$1, f$2, xs$3) =>
  @core.list-map-inner(
    T: $0,
    U: $1,
    f: fn(item$4) =>
      $2(item: $4),
    xs: $3,
    start: 0,
    end: @core.list-length(value: $3)
  )
visibility
public
core.list-map (project definy, branch auto-release, snapshot oiQgPqhJm-TbM4kexXeRHBaJB_tS7gwBSewII64P-44)
id: cNe6R8m35QsiteXZ8DvpkFEWYdKHLIs9iGUT1YtKG9w
content hash: PVslRIiC-b5upUxKTS_l8lKSikQTOWjB4pEPF8cHkEE