Sorry! I forgot to attach the file in which I was writing when finding
out about all this, so here I attach it.
Please don’t answer this message, so not to break the thread: answer the
former, so even the subject line is kept meaningful.
"1 - Exercices sur les tableaux"
t := #(3 5 6) copy.
t at:2 put:7. t
t at:2 put: ((t at:2) * 2).
t at:2 put: (t at:2) negated.
t at:3 put: (t at:2).
t at:3 put: ((t at:1) + (t at:3)).
"2 - Barycentre de points"
points := Array new:4.
points at:1 put: 100@100;
at:2 put: 200@200;
at:3 put: 100@200;
at
masses := #(1 2 3 4).
masse := (masses at:1) + (masses at:2) + (masses at:3) + (masses at:4)
"aueiauie"
_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk