On Fri, Dec 9, 2011 at 10:46 AM, Linda Alvord <[email protected]> wrote:
>     b=:5 3 5
> Either definition has only one argument so isn't the function oblique rather
> than key? So Ric has taken the "Oblique oad To Success!".  One wonders if it
> is faster than the other one.

My previous post about equivalents to /. was confused.

/.~ uses key
/. without ~ and using only one argument is oblique

key=:1 :0
:
  (=x) u@#"1 _ y
)

oblique=:1 :0
   (,+/&i./ 2{.1 1,~$y) u key ,/y
)

FYI,

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

Reply via email to