|
Hi Kacper, thanks, I see. If I read your examples correctly then Dyalog has a special syntax {A} to mark the left argument A of a defined function as optional and, as a consequence, to declare a function as ambivalent. In GNU APL (and I believe also in IBM APL2) every defined dyadic function is automatically ambivalent, and therefore there is not difference between a defined ambivalent function and a defined dyadic function. With that difference in mind, treating all lambdas as ambivalent would, for GNU APL, mean to treat all lambdas as dyadic. This would, in turn, prevent all lambdas from being used as monadic G in the Dyalog power operator. That all tells me that a monadic condition function in GNU APL is calling for trouble. And the text in the SYNTAX error seems to indicate that up to revision 14 of Dyalog APL the condition function was always treated as dyadic. /// Jürgen On 08/13/2016 10:34 PM, Kacper Gutowski
wrote:
On 13 August 2016 at 19:28, Juergen Sauermann wrote:It would also prevent the monadic use of the power operator with lambdas completely (which is not as bad as it sounds, though) because the lambdas are always ambivalent then.I think treating all lambda functions as ambivalent is actually what Dyalog does. I present you the following transcript from Dyalog APL version 14.0.23392.0 32 Unicode: |
- [Bug-apl] A couple of bugs, and a question on the power ... Louis de Forcrand
- Re: [Bug-apl] A couple of bugs, and a question on t... Juergen Sauermann
- Re: [Bug-apl] A couple of bugs, and a question ... Elias Mårtenson
- Re: [Bug-apl] A couple of bugs, and a quest... Juergen Sauermann
- Re: [Bug-apl] A couple of bugs, and a q... Elias Mårtenson
- Re: [Bug-apl] A couple of bugs, and a q... Louis de Forcrand
- Re: [Bug-apl] A couple of bugs, and a question ... Kacper Gutowski
- Re: [Bug-apl] A couple of bugs, and a quest... Juergen Sauermann
- Re: [Bug-apl] A couple of bugs, and a q... Kacper Gutowski
- Re: [Bug-apl] A couple of bugs, an... Juergen Sauermann
- Re: [Bug-apl] A couple of bugs... Jay Foad
- Re: [Bug-apl] A couple of bugs, and a question ... Jay Foad
- Re: [Bug-apl] A couple of bugs, and a quest... Juergen Sauermann
- Re: [Bug-apl] A couple of bugs, and a q... Jay Foad
- Re: [Bug-apl] A couple of bugs, an... Louis de Forcrand
- Re: [Bug-apl] A couple of bugs... Christian Robert
- Re: [Bug-apl] A couple of ... Louis de Forcrand
- Re: [Bug-apl] A couple of bugs, an... Jay Foad
- Re: [Bug-apl] A couple of bugs, and a question on t... Juergen Sauermann
- Re: [Bug-apl] A couple of bugs, and a question ... Louis de Forcrand
