Skip to content

Commit f7b7a67

Browse files
committed
Revision of .zip and .zip-latest refs #2632
1 parent 60c98ec commit f7b7a67

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

doc/Type/Supply.pod6

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,17 +803,25 @@ be called as a class method.
803803
804804
=head2 method zip
805805
806-
method zip(Supply @*supplies, :&with = &[,] --> Supply:D)
806+
Defined as:
807+
808+
method zip(**@s, :&with)
807809
808810
Creates a supply that emits combined values as soon as there is a new value
809-
seen on B<all> of the supplies. By default, L<Lists|/type/List> are
811+
seen on B<all> of the supplies. By default, L<C<Lists>|/type/List> are
810812
created, but this can be changed by specifying your own combiner with the
811813
C<:with> parameter. The resulting supply is done as soon as B<any> of the given
812814
supplies are done. Can also be called as a class method.
813815
816+
This can also be used as a class method; in case it's used as an object
817+
method the corresponding supply will be one of the supplies combined (with no
818+
special treatment).
819+
814820
=head2 method zip-latest
815821
816-
method zip-latest(Supply @*supplies, :&with = &[,], :$initial --> Supply:D)
822+
Defined as:
823+
824+
method zip-latest(**@s, :&with, :$initial )
817825
818826
Creates a supply that emits combined values as soon as there is a new value
819827
seen on B<any> of the supplies. By default, L<Lists|/type/List> are

0 commit comments

Comments
 (0)