I hope I understood your question correctly. When you wrote function DEAL
, you decided to name the argument N
and the result HAND
.
But when using DEAL
in another function, you are totally free in how you name the result it calculates: XYZ007←DEAL 7
is perfectly valid.
And if you want a different function to operate on that, that function should provide a possibility to pass a right (and left) argument, where you could pass your HANDS
or my XYZ007
and whatever else.
And if you need to pass more than 2 arguments, you should learn about nested arrays because then you can (with all 'modern' APLs) write stuff like res←SuperCalc (A B C D E F)