The R Project SVN R

Rev

Rev 6657 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

\name{Paren}
\title{Parentheses and Braces}
\usage{
( \dots )

{ \dots }
}
% These two do not work properly!
%\alias{(}
%\alias{{}
\description{
    Open parenthesis, \code{(}, and open brace, \code{\{}, are
    \code{\link{.Primitive}} functions in \R.

    Effectively, \code{(} is semantically equivalent to the identity
    \code{function(x) x}, whereas \code{\{} is slightly more interesting,
    see examples.
}
\seealso{
\code{\link{if}}, \code{\link{return}}, etc for other objects used in
the \R language itself.
}
\examples{
f <- get("(")
e <- expression(3 + 2 * 4)
f(e) == e           # TRUE

do <- get("{")
do(x_ 3, y_ 2*x-3, 6-x-y); x; y
}
\keyword{programming}