I like this conjunction

amdt =: 2 : '(u (v{ ]))`(v"_@:])`]} ]'


10 + amdt 3 i.5

0 1 2 13 4

10 + amdt (>&3) i.5

10 11 2 3 4



On Sunday, October 25, 2020, 03:58:13 a.m. EDT, pietdion <[email protected]> 
wrote: 





What is the best way to add, say,  scalar x to component i of vector y?

One way is (x + i{y) i} y
But this seems clumsy/expensive.
Is there a cleaner/more efficient way?  
----------------------------------------------------------------------
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