On Wednesday, September 10, 2014 12:20:59 PM UTC-4, Gray Calhoun wrote: > > Are there better ways to do this in general? >
For this kind of expression-matching code, you may find the Match.jl package handy (https://github.com/kmsquire/Match.jl), to get ML- or Scala-like symbolic pattern-matching.