squareBrackets method args call message arguments at code split form M

1
2
3
4
5
6
7
8
squareBrackets := method(
args := call message arguments at(0) code split;
form := Message fromString(args at(0));
name := args at(2);
iterable := doString(args at(4));
helper := Object clone;
iterable map(elem, helper setSlot(name, elem); (form doInContext(helper)))
)