Skip to main content
2 of 2
add code tags
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k

The reason is that you are using ___ instead of _. ___ is a pattern-matcher which can match zero or more sequences of arguments. In this example, it parses as follows: f = Null, g = Sequence[x^2 + y, x^3], x = x, y = y.

This can be prevented if you use _ instead of ___ throughout.

Patrick Stevens
  • 6.1k
  • 1
  • 17
  • 42