> I'm still struggling with the @ and & purposes, but I think only
> reading the explanations more carefully can fix that.

If there are only monadic functions, you can use juxtaposition to denote
function composition:

  f=: f0 f1 f2 ...

or, as in conventional mathematical notation, use the simple ∘ (jot):

  f=: f0 ∘ f1 ∘ f2 ∘ ...

But when dyadic functions are involved, functions can be composed in
different ways and you need the composition operators @ & &. fork etc.



On Wed, Feb 26, 2014 at 7:05 AM, Jon Hough <jgho...@outlook.com> wrote:

> Thanks for replying, everyone.Sorry the formatting was all garbled. It was
> copy and pasted.
> It seems, for me at least, that
>  >./ @ q:
> is the simplest and most elegant way to do it. I'm still struggling with
> the @ and & purposes, but I think only reading the explanations more
> carefully can fix that.
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to