Last post on from me on this one,

For some reason the mail system is is reformatting       >: mdf 'N'         to  
      |  : mdf 'N'

cheers, bob

On -Apr21-2010, at -Apr21-201010:22 AM, bob therriault wrote:

> Oops,
> 
> The example should read:
> 
> N=:4 
>> : mdf 'N'
> 5
>   N
> 5
> 
> 
> 
> On -Apr21-2010, at -Apr21-201010:16 AM, bob therriault wrote:
> 
>> along the lines of  Raul's suggestion, 
>> but closer to the original request of Richard's
>> 
>>> f=:3
>>> (=: >:) f
>>> |syntax error
>>> |   (=:>:)f
>>> 
>>> Why is this not allowed?
>> 
>> 
>> is the monadic version.
>> 
>> mdf=:1 :0
>> (y)=:u (".y)
>> )
>> 
>> NB. For example
>> 
>>    ] N=:4
>> 4
>>> : mdf 'N'
>> 5
>>     N
>> 5
>> 
>> cheers, bob
>> 
>> On -Apr21-2010, at -Apr21-20109:39 AM, Raul Miller wrote:
>> 
>>> For what it's worth, here is how to define, in J, a
>>> word which parallels C's modified assignment
>>> operations:
>>> 
>>> modf=:1 :0
>>> :
>>> (x)=:(".x)u y
>>> )
>>> 
>>> 
>>> Its use pattern is:
>>> 
>>> quotedname verb modf noun
>>> 
>>> Its meaning is:
>>> name =: name verb noun
>>> 
>>> where name is the name which was quoted.
>>> 
>>> For example:
>>> N=:10
>>> 'N' + modf 3
>>> 'N' * modf 2
>>> 
>>> N will have the value 26 after executing these lines.
>>> 
>>> If any of this needs explaining, please let me know.
>>> 
>>> FYI,
>>> 
>>> -- 
>>> Raul
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>> 
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to