pmatch 0.1.5 Unreleased

  • Compatibility with rlang 0.3.0
  • Removed cases function (use case_func instead, it is much faster).
  • Removed tailr dependency.

pmatch 0.1.4 2018-10-19

  • New constructor code. This gives an substantial speedup when generating objects.
  • Added case_func as a much faster replacement for using the cases function.
  • Suggests ggraph and tidygraph for vignettes
  • Pattern matching on multiple patterns and values using .. notation.
  • Fixed a rewrite bug when using qualified names.
  • Uses foolbox for a safer rewrite function.

pmatch 0.1.3 2018-03-22

  • Formula syntax in cases as an alternative: cases(f(x), foo ~ bar, baz ~ qux). This is easier to get to static code checks such as lintr and through the byte compiler that can complain about “assignments” to literals.
  • bind[x,y,z] <- 1:3 syntax for binding variables.
  • transformation function transform_cases_function for modifying a function instead of calling cases.

pmatch 0.1.2 2018-02-28

  • Transformation rules to make pattern matching work with tail-recursion from tailr package.
  • Function cases_expr generates an expression (a call object) based on pattern rules.
  • Exporting test_pattern and test_pattern_ to test one pattern against a value.

pmatch 0.1.1 2018-02-06

  • Initial release.