• Applies the function aFun to each element of the list aList and returns the list of the results

    Parameters

    • aList: List<any>

      the list to consider

    • aFun: ((_: any) => any)

      a mapping function applied to each element of aList

        • (_): any
        • Parameters

          • _: any

          Returns any

    Returns List<any>

    the list of the results

    listMap(cons(1, cons(2, nil)), (z) => `${z}`); // -> cons("1", cons("2", nil))