diff --git a/Collections/Collections.tex b/Collections/Collections.tex index 97d8aa8..e0b7901 100644 --- a/Collections/Collections.tex +++ b/Collections/Collections.tex @@ -385,8 +385,8 @@ \section{Examples of key classes} Array newFrom: #(7 3 1 3) --> #(7 3 1 3) OrderedCollection newFrom: #(7 3 1 3) --> an OrderedCollection(7 3 1 3) SortedCollection newFrom: #(7 3 1 3) --> a SortedCollection(1 3 3 7) -Set newFrom: #(7 3 1 3) --> a Set(7 1 3) -Bag newFrom: #(7 3 1 3) --> a Bag(7 1 3 3) +Set newFrom: #(7 3 1 3) --> !\SqVersionSwitch{6.1}{a Set(1 3 7)}{a Set(7 1 3)}! +Bag newFrom: #(7 3 1 3) --> !\SqVersionSwitch{6.1}{a Bag(1->1 3->2 7->1)}{a Bag(7 1 3 3)}! Dictionary newFrom: {1 -> 7 . 2 -> 3 . 3 -> 1 . 4 -> 3} --> a Dictionary(1->7 2->3 3->1 4->3 ) \end{code} \noindent