In Dyalog APL, in a .Net Class, I can add :Attribute to a class, and to a method, but it doesn't look like I can add an attribute to a Field (property in C#); is that possible?
I have a working proof-of-concept PowerShell Cmdlet in APL now :) but it can only output some data; to get a Cmdlet which can accept input requires its class to have public properties with "ParameterAttribute" attributes; adding :Attribute ParameterAttribute after the field declaration does not error, but does not emit any related CIL code to the assembly dll either
In help.dyalog.com/17.1/#UNIX_IUG/… it says that Dyalog can be used to run scripts. But it does not go into detail on how and i was unable to do it with mapl. Does anyone have experience with this?
@JamesHeslip I got this idea for an Axes operator which would take a function and two arguments, and then apply the left arguments along the axes of the right argument.
Oh yes, I'm with you on that. All this was discussed in the comments to your article. Well, we could (not saying we should) add something like ¯1 to mean all. Then you'd be able to do 1 ¯1 3⌷
@JamesHeslip Sure, e.g. if you have a 3-by-4 matrix and want the first and last row, and first, second and fourth column, you'd do (1 0 1)(1 1 0 1)⌿Axes matrix
However, it doesn't solve the problem of skipping axes, instead relying on the function having a left argument that allows skipping, e.g. 1 for ⌿ and ,1 for ⊂[1] (with my proposed extension).