<div dir="auto"><div>Is there a strong indication to use add: anAssociation over at:put: here? The latter is more idiomatic and does not use the implementation detail that a dictionary is made up of associations. </div><div dir="auto"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr"> <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> schrieb am Fr., 15. Nov. 2019, 13:59:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A new version of Collections was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Collections-ct.860.mcz" rel="noreferrer noreferrer" target="_blank">http://source.squeak.org/inbox/Collections-ct.860.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-ct.860<br>
Author: ct<br>
Time: 15 November 2019, 1:58:56.418005 pm<br>
UUID: f6364e7f-08c8-694a-9060-21bc0a0c28d4<br>
Ancestors: Collections-pre.857<br>
<br>
Add convenience constructor for Dictionary<br>
<br>
Dictionary fromKeys: 'wasd' values: '8426'<br>
<br>
=============== Diff against Collections-pre.857 ===============<br>
<br>
Item was added:<br>
+ ----- Method: Dictionary class>>fromKeys:values: (in category 'instance creation') -----<br>
+ fromKeys: keys values: values<br>
+ <br>
+       | dictionary |<br>
+       self assert: [keys size = values size].<br>
+       dictionary := self new: keys size.<br>
+       keys with: values do: [:key :value |<br>
+               dictionary add: key -> value].<br>
+       ^ dictionary!<br>
<br>
<br>
</blockquote></div></div></div>