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
Unlike with maps, however, the keys used when using +assoc+ on a vector
38
38
must be integer indexes within the range of the vector. Attempting to
39
39
use a noninteger key will cause an +IllegalArgumentException+, and
40
-
attempting to +assoc+ an index greater than one more than the size of
41
-
the vector will throw an +IndexOutOfBoundsException+.(((exceptions/errors, IllegalArgumentException)))(((exceptions/errors, IndexOutOfBoundsException)))
40
+
attempting to +assoc+ an index greater than the size of the vector will throw
41
+
an +IndexOutOfBoundsException+.(((exceptions/errors, IllegalArgumentException)))(((exceptions/errors, IndexOutOfBoundsException)))
42
42
43
-
Note that it _is_ possible to +assoc+ to an index equal to the
44
-
current size of the vector (one greater than the maximum index). This will have
45
-
the result of appending the item to the end
46
-
(see <<sec_adding_to_a_vector>>).(((range="endofrange", startref="ix_CDvect")))
43
+
Note that it _is_ possible to +assoc+ to an index equal to the current size
44
+
of the vector (one greater than the maximum index). This will have
45
+
the result of appending the item to the end (see <<sec_adding_to_a_vector>>).(((range="endofrange", startref="ix_CDvect")))
0 commit comments