File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -803,17 +803,25 @@ be called as a class method.
803
803
804
804
= head2 method zip
805
805
806
- method zip(Supply @*supplies, :&with = &[,] --> Supply:D)
806
+ Defined as:
807
+
808
+ method zip(**@s, :&with)
807
809
808
810
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
810
812
created, but this can be changed by specifying your own combiner with the
811
813
C < :with > parameter. The resulting supply is done as soon as B < any > of the given
812
814
supplies are done. Can also be called as a class method.
813
815
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
+
814
820
= head2 method zip-latest
815
821
816
- method zip-latest(Supply @*supplies, :&with = &[,], :$initial --> Supply:D)
822
+ Defined as:
823
+
824
+ method zip-latest(**@s, :&with, :$initial )
817
825
818
826
Creates a supply that emits combined values as soon as there is a new value
819
827
seen on B < any > of the supplies. By default, L < Lists|/type/List > are
You can’t perform that action at this time.
0 commit comments