/* Demonstration of pattern-matching */ /* remove the terms "sin(5*x)", "sin(6*x)", ... from an expression */ /* anonymous function: Replace term, if symbol "q" is 4 < q */ matchdeclare(q, lambda([x], 4