Class Function

  • All Implemented Interfaces:
    java.lang.Comparable<Operator>

    public class Function
    extends Operator
    A function is an implicit binary operator between two "noun" tokens—typically between a variable on the left and a group on the right, in which case the function's precedence is inferred from the group.

    Examples:

    • f()f (0) <Fn>
    • f(a)f a (1) <Fn>
    • f(a, b)f a b (2) <Fn>
    • f(g(a))f g a (1) <Fn> (1) <Fn>
    Author:
    Curtis Rueden
    • Constructor Detail

      • Function

        public Function​(double precedence)