mathjs icon indicating copy to clipboard operation
mathjs copied to clipboard

`transform` should accept and compose multiple transforms

Open mattvague opened this issue 3 years ago • 1 comments

Per discussion here, it would be great to be able to pass multiple transforms to the transform function and have them be composed

e.g.

myNode.transform(transform1, transform2)
myNode.transform([transform1, transform2])

which would be equivalent to

myNode.transform(node => transform1(transform2(node))

or

myNode
  .transform(transform1)
  .transform(transform2)

Happy to take this on, just adding a task for it here in the mean time

mattvague avatar May 20 '22 17:05 mattvague

Thanks for the clear description, this would be a neat, flexible improvement.

josdejong avatar May 24 '22 07:05 josdejong