@@ -357,6 +357,9 @@ DataSeries >> defaultPrecision [
357357DataSeries >> eighth [
358358 " Answer the eighth element of the receiver.
359359 Raise an error if there are not enough elements."
360+
361+ " (#(a b c d e f g h i j) asDataSeries eighth) >>> #h"
362+
360363 ^ self atIndex: 8
361364]
362365
@@ -394,13 +397,19 @@ DataSeries >> errorKeysMismatch [
394397DataSeries >> fifth [
395398 " Answer the fifth element of the receiver.
396399 Raise an error if there are not enough elements."
400+
401+ " (#(a b c d e f g h i j) asDataSeries fifth) >>> #e"
402+
397403 ^ self atIndex: 5
398404]
399405
400406{ #category : #accessing }
401407DataSeries >> first [
402408 " Answer the first element of the receiver.
403409 Raise an error if there are not enough elements."
410+
411+ " (#(a b c d e f g h i j) asDataSeries first) >>> #a"
412+
404413 ^ self atIndex: 1
405414]
406415
@@ -417,6 +426,9 @@ DataSeries >> firstQuartile [
417426DataSeries >> fourth [
418427 " Answer the fourth element of the receiver.
419428 Raise an error if there are not enough elements."
429+
430+ " (#(a b c d e f g h i j) asDataSeries fourth) >>> #d"
431+
420432 ^ self atIndex: 4
421433]
422434
@@ -578,6 +590,9 @@ DataSeries >> keys: anArrayOfKeys [
578590DataSeries >> last [
579591 " Answer the last element of the receiver.
580592 Raise an error if there are not enough elements."
593+
594+ " (#(a b c d e f g h i j) asDataSeries last) >>> #j"
595+
581596 ^ self atIndex: self size
582597]
583598
@@ -631,6 +646,10 @@ DataSeries >> min [
631646DataSeries >> mode [
632647 " The mode of a set of values is the value that appears most often. "
633648
649+ " (#(a j a j e j g j i j) asDataSeries mode) >>> #j"
650+
651+ " (#(1 2 3 2) asDataSeries mode) >>> 2"
652+
634653 | valueCounts |
635654 valueCounts := self valueCounts.
636655 ^ valueCounts keyAtValue: valueCounts max
@@ -654,6 +673,9 @@ DataSeries >> name: anObject [
654673DataSeries >> ninth [
655674 " Answer the ninth element of the receiver.
656675 Raise an error if there are not enough elements."
676+
677+ " (#(a b c d e f g h i j) asDataSeries ninth) >>> #i"
678+
657679 ^ self atIndex: 9
658680]
659681
@@ -779,6 +801,9 @@ DataSeries >> replaceNilsWithZeros [
779801DataSeries >> second [
780802 " Answer the second element of the receiver.
781803 Raise an error if there are not enough elements."
804+
805+ " (#(a b c d e f g h i j) asDataSeries second) >>> #b"
806+
782807 ^ self atIndex: 2
783808]
784809
@@ -803,13 +828,19 @@ DataSeries >> select: aBlock [
803828DataSeries >> seventh [
804829 " Answer the seventh element of the receiver.
805830 Raise an error if there are not enough elements."
831+
832+ " (#(a b c d e f g h i j) asDataSeries seventh) >>> #g"
833+
806834 ^ self atIndex: 7
807835]
808836
809837{ #category : #accessing }
810838DataSeries >> sixth [
811839 " Answer the sixth element of the receiver.
812840 Raise an error if there are not enough elements."
841+
842+ " (#(a b c d e f g h i j) asDataSeries sixth) >>> #f"
843+
813844 ^ self atIndex: 6
814845]
815846
@@ -933,6 +964,9 @@ DataSeries >> tail: aNumber [
933964DataSeries >> third [
934965 " Answer the third element of the receiver.
935966 Raise an error if there are not enough elements."
967+
968+ " (#(a b c d e f g h i j) asDataSeries third) >>> #c"
969+
936970 ^ self atIndex: 3
937971]
938972
0 commit comments