Skip to content

Commit a87a9b0

Browse files
committed
Add doc stubs for Supply.head/tail
1 parent 15957e1 commit a87a9b0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/Type/Supply.pod

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,18 @@ Creates a new supply in which changes to the number of values seen are
330330
emitted. It optionally also takes an interval (in seconds) if you only want
331331
to be updated every so many seconds.
332332
333+
=head2 method head
334+
335+
method head(Supply:D: Int(Cool) $number = 1) returns Supply:D
336+
337+
Creates a "head" supply with the same semantics as List.head.
338+
339+
=head2 method tail
340+
341+
method tail(Supply:D: Int(Cool) $number = 1) returns Supply:D
342+
343+
Creates a "tail" supply with the same semantics as List.tail.
344+
333345
=head2 method rotor
334346
335347
method rotor(Supply:D: @cycle) returns Supply:D

0 commit comments

Comments
 (0)