You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/set.cr
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
-
# `Set` implements a collection of unordered values with no duplicates.
1
+
# `Set` implements a collection of values with no duplicates.
2
2
#
3
3
# An `Enumerable` object can be converted to `Set` using the `#to_set` method.
4
4
#
5
5
# `Set` uses `Hash` as storage, so you must note the following points:
6
6
#
7
7
# * Equality of elements is determined according to `Object#==` and `Object#hash`.
8
+
# * Enumeration follows the order that the elements were inserted.
8
9
# * `Set` assumes that the identity of each element does not change while it is stored. Modifying an element of a set will render the set to an unreliable state.
0 commit comments