bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Axis argument documentation


From: Juergen Sauermann
Subject: Re: [Bug-apl] Axis argument documentation
Date: Sat, 14 Jun 2014 18:08:31 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Blake,

thanks, I have added a sentence mentioning that axes have no constraints (SVN 325).

There was an example already (function Z←Average[X] B).

/// Jürgen


On 06/13/2014 12:57 AM, Blake McBride wrote:
Greetings,

Reviewing the docs for axis argument function, it seems to me that this feature is a lot more powerful than the docs would lead one to believe.  The docs imply that the axis argument is designed for, and perhaps can only be used as, an axis argument.  This is shown in the documentation.  I propose two things be added:

1.  A statement making it clear that the axis argument can be used for any purpose - just like the other arguments to the function.

2.  Give an example like:

      ∇test[⎕]∇
    ∇
[0]   r←x test[z] y
[1]   'x = ',⍕x
[2]   'y = ',⍕y
[3]   'z = ',⍕z
[4]   r←x+y+z
    ∇
      3 test[4] 5
x = 3
y = 5
z = 4
12



reply via email to

[Prev in Thread] Current Thread [Next in Thread]