Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 904 Bytes

File metadata and controls

23 lines (13 loc) · 904 Bytes

Hints

General

  • For each task, each function should return a function closure, using the supplied arguments.

1. Translate the coordinates

  • The supplied arguments provide the amount to translate the coordinate pair along the x and y axis.

2. Scale the coordinates

  • The supplied arguments provide the amount to scale the coordinate pair for the x and y axis.

3. Compose transformation functions

  • The result of the first transformation is an array, but the transformation functions take two number arguments. You will have to get the values from the array.
  • Remember that the order in which the functions are performed matters.

4. Save the results of functions

  • For this function, you only have to memoize the result of the last transformation.
  • In order to send back the result of the last transformation, you will have to check if the input arguments are the same.