|
@@ -1638,11 +1638,13 @@ selector: "withIndexDo:",
|
|
category: 'enumerating',
|
|
category: 'enumerating',
|
|
fn: function (aBlock){
|
|
fn: function (aBlock){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
_st(self)._keysAndValuesDo_(aBlock);
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
_st(self)._keysAndValuesDo_((function(key,value){
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
return _st(aBlock)._value_value_(value,key);
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({key:key,value:value},$ctx1)})}));
|
|
return self}, function($ctx1) {$ctx1.fill(self,"withIndexDo:",{aBlock:aBlock},smalltalk.HashedCollection)})},
|
|
return self}, function($ctx1) {$ctx1.fill(self,"withIndexDo:",{aBlock:aBlock},smalltalk.HashedCollection)})},
|
|
args: ["aBlock"],
|
|
args: ["aBlock"],
|
|
-source: "withIndexDo: aBlock\x0a\x09self keysAndValuesDo: aBlock",
|
|
|
|
-messageSends: ["keysAndValuesDo:"],
|
|
|
|
|
|
+source: "withIndexDo: aBlock\x0a\x09self keysAndValuesDo: [ :key :value | aBlock value: value value: key ]",
|
|
|
|
+messageSends: ["keysAndValuesDo:", "value:value:"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HashedCollection);
|
|
smalltalk.HashedCollection);
|