fa =: 3 : 0
(#y) fa y
:
'x{.i.y
)
R.E. Boss
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] [mailto:programming-
> [EMAIL PROTECTED] Namens Graham Parkhouse
> Verzonden: maandag 23 juli 2007 15:05
> Aan: 'Programming forum'
> Onderwerp: [Jprogramming] Defining an ambivalent verb
>
> If I am able to define a verb dyadically and would like to have the
> monadic
> definition to be the same as the dyadic function with a default left
> argument which is dependent on the shape of the right argument, I can do
> it
> like this (using a trivial example):
>
> fd =: 4 : 'x{.i.y'
> fa =: 3 : 0
> (#y) fd y
> :
> x fd y
> )
>
> But I only want to define fa. Is there a way I can avoid defining fd?
>
> Graham Parkhouse
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm