@@ -29,38 +29,40 @@ argument which, when specified, will be used to fill the C<IterationBuffer>.
29
29
30
30
method push(IterationBuffer:D: Mu \value)
31
31
32
- Adds the given value at the end of the C<IterationBuffer>.
32
+ Adds the given value at the end of the C<IterationBuffer> and returns the
33
+ given value.
33
34
34
35
=head2 method unshift
35
36
36
37
method unshift(IterationBuffer:D: Mu \value)
37
38
38
- Adds the given value at the beginning of the C<IterationBuffer>.
39
+ Adds the given value at the beginning of the C<IterationBuffer> and returns
40
+ the given value.
39
41
40
42
=head2 method append
41
43
42
- method append(IterationBuffer:D: IterationBuffer:D $other)
44
+ method append(IterationBuffer:D: IterationBuffer:D $other --> IterationBuffer:D )
43
45
44
46
Adds the contents of the other C<IterationBuffer> at the end of
45
- the C<IterationBuffer>.
47
+ the C<IterationBuffer>, and returns the updated invocant .
46
48
47
49
=head2 method prepend
48
50
49
- method prepend(IterationBuffer:D: IterationBuffer:D $other)
51
+ method prepend(IterationBuffer:D: IterationBuffer:D $other --> IterationBuffer:D )
50
52
51
53
Adds the contents of the other C<IterationBuffer> at the beginning
52
- of the C<IterationBuffer>.
54
+ of the C<IterationBuffer>, and returns the updated invocant .
53
55
54
56
=head2 method clear
55
57
56
- method clear(IterationBuffer:D:)
58
+ method clear(IterationBuffer:D: --> Nil )
57
59
58
60
Resets the number of elements in the C<IterationBuffer> to zero,
59
- effectively removing all data from it.
61
+ effectively removing all data from it, and returns C<Nil> .
60
62
61
63
=head2 method elems
62
64
63
- method elems(IterationBuffer:D:)
65
+ method elems(IterationBuffer:D: --> Int:D )
64
66
65
67
Returns the number of elements in the C<IterationBuffer>.
66
68
@@ -87,25 +89,25 @@ negative position values.
87
89
88
90
=head2 method Slip
89
91
90
- method Slip(IterationBuffer:D:)
92
+ method Slip(IterationBuffer:D: --> Slip:D )
91
93
92
94
Coerces the C<IterationBuffer> to a L<Slip|/type/Slip>.
93
95
94
96
=head2 method List
95
97
96
- method List(IterationBuffer:D:)
98
+ method List(IterationBuffer:D: --> List:D )
97
99
98
100
Coerces the C<IterationBuffer> to a L<List|/type/List>.
99
101
100
102
=head2 method Seq
101
103
102
- method Seq(IterationBuffer:D:)
104
+ method Seq(IterationBuffer:D: --> Seq:D )
103
105
104
106
Coerces the C<IterationBuffer> to a L<Seq|/type/Seq>.
105
107
106
108
=head2 method raku
107
109
108
- method raku(IterationBuffer:D:)
110
+ method raku(IterationBuffer:D: --> Str )
109
111
110
112
Produces a representation of the C<IterationBuffer> as a C<List>
111
113
postfixed with ".IterationBuffer" to make it different from an
0 commit comments