#DOCUMENTATION by cg
class: SequenceableCollection
comment/format in:
#from:
#from:by:
#from:to:
#from:to:by:
#to:
#to:by:
--- a/SequenceableCollection.st Wed Feb 22 09:55:48 2017 +0100
+++ b/SequenceableCollection.st Wed Feb 22 10:53:14 2017 +0100
@@ -3520,7 +3520,7 @@
Warning:
The slice SHARES the memory for the element-data with the original,
this means that any modifications in the original are visible in the slice
- and vice versa."
+ and vice versa (well, no; the slice is readOnly)."
^ self
from:startIndex
@@ -3533,6 +3533,8 @@
( #(1 2 3 4 5 6 7) from:3 ) last
( #(1 2 3 4 5 6 7) from:3 ) size
"
+
+ "Modified (comment): / 22-02-2017 / 10:49:20 / cg"
!
from:startIndex by:step
@@ -3543,7 +3545,7 @@
Warning:
The slice SHARES the memory for the element-data with the original,
this means that any modifications in the original are visible in the slice
- and vice versa."
+ and vice versa (well, no; the slice is readOnly)."
^ self
from:startIndex
@@ -3557,7 +3559,10 @@
( #(1 2 3 4 5 6 7) from:3 by:2) first
( #(1 2 3 4 5 6 7) from:3 by:2) last
( #(1 2 3 4 5 6 7) from:3 by:2) size
- "
+ ( #(1 2 3 4 5 6 7) from:5 by:-2)
+ "
+
+ "Modified (comment): / 22-02-2017 / 10:51:44 / cg"
!
from:startIndex count:numberOfElements
@@ -3624,7 +3629,7 @@
Warning:
The slice SHARES the memory for the element-data with the original,
this means that any modifications in the original are visible in the slice
- and vice versa."
+ and vice versa (well, no; the slice is readOnly)."
^ self
from:startIndex
@@ -3638,7 +3643,14 @@
( #(1 2 3 4 5 6 7) from:3 to:6) first
( #(1 2 3 4 5 6 7) from:3 to:6) last
( #(1 2 3 4 5 6 7) from:3 to:6) size
- "
+
+ #(1 2 3 4 5 6 7) from:3 to:1
+ ( #(1 2 3 4 5 6 7) from:3 to:1 ) first
+ ( #(1 2 3 4 5 6 7) from:3 to:1 ) last
+ ( #(1 2 3 4 5 6 7) from:3 to:1 ) size
+ "
+
+ "Modified (comment): / 22-02-2017 / 10:51:06 / cg"
!
from:startIndex to:endIndex by:step
@@ -3662,7 +3674,11 @@
( #(1 2 3 4 5 6 7) from:3 to:7 by:2) first
( #(1 2 3 4 5 6 7) from:3 to:7 by:2) last
( #(1 2 3 4 5 6 7) from:3 to:7 by:2) size
- "
+
+ ( #(1 2 3 4 5 6 7) from:7 to:3 by:-2)
+ "
+
+ "Modified (comment): / 22-02-2017 / 10:52:25 / cg"
!
to:endIndex
@@ -3673,7 +3689,7 @@
Warning:
The slice SHARES the memory for the element-data with the original,
this means that any modifications in the original are visible in the slice
- and vice versa."
+ and vice versa (well, no; the slice is readOnly)."
^ self
from:1
@@ -3686,6 +3702,8 @@
( #(1 2 3 4 5 6 7) to:4) last
( #(1 2 3 4 5 6 7) to:4) size
"
+
+ "Modified (comment): / 22-02-2017 / 10:49:38 / cg"
!
to:endIndex by:step
@@ -3696,7 +3714,7 @@
Warning:
The slice SHARES the memory for the element-data with the original,
this means that any modifications in the original are visible in the slice
- and vice versa."
+ and vice versa (well, no; the slice is readOnly)."
^ self
from:(step > 0
@@ -3710,7 +3728,10 @@
( #(1 2 3 4 5 6 7) to:4 by:2) first
( #(1 2 3 4 5 6 7) to:4 by:2) last
( #(1 2 3 4 5 6 7) to:4 by:2) size
- "
+ #(1 2 3 4 5 6 7) to:1 by:-1
+ "
+
+ "Modified (comment): / 22-02-2017 / 10:50:18 / cg"
! !
!SequenceableCollection methodsFor:'copying'!