From radford at cs.toronto.edu  Wed Dec 17 16:39:55 2014
From: radford at cs.toronto.edu (Radford Neal)
Date: Wed, 17 Dec 2014 10:39:55 -0500
Subject: [Rd]  vapply definition question
In-Reply-To: <mailman.15.1418814005.8005.r-devel@r-project.org>
References: <mailman.15.1418814005.8005.r-devel@r-project.org>
Message-ID: <20141217153955.GA2866@cs.toronto.edu>

> so I guess you're looking at a modified version of the function... The 
> implementation detail is in the comment -- FUN(X[i], ...) is evaluated in the 
> frame of lapply.
> 
> Martin Morgan

You may find it interesting that in the latest version of pqR, lapply is made
faster in the case where no ... is used by then not actuallly passing ... to
FUN, which significatly reduces call overhead.  See the code at

  https://github.com/radfordneal/pqR/blob/Release-2014-11-16/src/main/apply.c



[Rd] vapply definition question
Radford Neal