apply

docblock
apply(x, f)

Apply the function f to each element of x and return an array.

Arguments

  • x: an iterable collection.
  • f: a function.

docblock
apply(d::Dict, f)

Apply the function f to each value of d and return a dictionary with the same keys of d.

Arguments

  • d: a dictionary.
  • f: a function.