I often want to define a dyad with boxed arguments, and end up writing
something like

   f=:4 : '<(>x) -. > y'

and using it for example as

   2 f/\ 1 2 3; 2 3; 1 2
+-+-+
|1|3|
+-+-+

While I can obviously write f tacitly, say as

    g=:<@:(>@:[ -. >@:])

it feels far less natural than the way J handles monads in boxes using u&.> .

Is there a better way?

Best wishes,

John


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

Reply via email to