On 7/3/07, R.E. Boss <[EMAIL PROTECTED]> wrote:
What is the fastest way to replace the atoms in y which occur in {.x by the
corresponding values in {:x, where 2={.$x and 2=#$x?

For numeric y, this seems faster:
  rpl2=: ] - (0 ,~ -/)@[ {~ ] i.~ [EMAIL PROTECTED]

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to