/**
   * Executes example.
   *
   * @param args Command line arguments, none required.
   */
  public static void main(String[] args) {
    // Typedefs:
    // ---------
    // G -> GridFactory
    // CI1 -> GridInClosure
    // CO -> GridOutClosure
    // CA -> GridAbsClosure
    // F -> GridFunc

    GridEither<String, Integer> either = getValue(false);

    if (either.isLeft()) X.println("Left: " + either.left());
    else X.println("Right: " + either.right());
  }