dot form of amend

Hi,
i did this :
?
b:(10 20 30;40 50 60)

.[b;enlist( (0;0) (1;1));*;10]
/(1000 2000 3000;40 50 60)/

.[b;( (0;0) (1;1));*;10]
/(100 20 30;40 50 60)/

.[b;((0;0);(1;1));*;10]
/(10 200000 30;40 50 60)/

i do not understand the results … i mean there is a way of passing a list of changes to be made to a hierarchical structure
?
?
for the @ version i can see how setting a list of indices works, but for dot format is not obvious for me …
?
Thank you,
Best regards,
Eugen


Eugen

Most of those aren’t doing what you think they are–(0;0)(1;1) is an
application of one list to another, same as 0 0@1 1.

This seems to work, not sure if there’s a better way

q)./[b;;*;10](0 0;1 1)
100 20 30
40 500 60

normal indexing:
q)0N!b(0 0;1 1);
((10 20 30;10 20 30);(40 50 60;40 50 60))
q)0N!b . enlist(0 0;1 1)
((10 20 30;10 20 30);(40 50 60;40 50 60))

cross-sectional indexing
q)b[0 0;1 1]
20 20
20 20
q)b .(0 0;1 1)
20 20
20 20
q)b[0 0][;1 1]
20 20
20 20

so in your last amend you multiply four times

what you are looking for i think
q)./[b;(0 0;1 1);*;10]
100 20? 30
40? 500 60
? Attila

understood . thx !!!