[q-lang-users] Infixed Ternary Operators?
Brought to you by:
agraef
From: Rob H. <hub...@gm...> - 2007-12-18 23:05:58
|
Dear Albert, I think the answer to this question will be "no", but I thought I'd ask it anyway (just in case). It is possible to define a ternary infix operator? For example, suppose the operator is called f, and takes three arguments public f P X Y; I'd like to write X (f 13) Y rather than f 13 X Y In other words, I'd like the partial application f 13 to yield a ('specialised') infix operator. If it can't be done, then I don't consider it important enough (or even necessarily desirable) to implement. I just wondered whether there might be some kind of Q trick I'd not thought of. Thanks, Rob. |