Consider the function below:
foo <- function (a.list, index = NULL) {
  if (is.null(index)) {
    a.list[]
  }
  else {
    a.list[index]
  }
}
I'd like to know if there's some value EMPTY_INDEX for the definition of foo2 below:
foo2 <- function (a.list, index = EMPTY_INDEX) {
  a.list[index]
}
...that would render foo2 equivalent to foo.