code: function(a, b) {
        if (typeof a === "number") {
          return a - b;
        }
        else {
          return a.map(function(x, i) { return x - b[i]; });
        }
      }
docs: polymorphic subtract for scalars and vectors