Skip to content
Prev 55964 / 63424 Next

Warning when calling formals() for `[`.

There is more "fun" afoot here, but I don't recall what the point may be:
function (e1, e2) 
NULL
NULL
.Primitive("[")
function (e1, e2)  .Primitive("+")

The other index operators, "[[", "[<-", "[[<-" are similar

The docs are pretty clear that args() on a primitive should yield a closure, so at least the documentation seems to be wrong.

-pd