@@ -771,8 +771,9 @@ def generateMainClasses(): Unit = {
771771 *
772772 * <p>The first argument ({@code ts1}) is the initial ${mtype}. Each subsequent
773773 * argument ({@code ts2} .. {@code ts $i}) is a function that receives all values
774- * bound so far and returns the next ${mtype}. This only builds the lazy
775- * comprehension; effects are evaluated when {@code yield(...)} is called.</p>
774+ * bound so far and returns the next ${mtype}. This method only constructs the
775+ * lazy comprehension; underlying effects are evaluated when {@code yield(...)}
776+ * is invoked.</p>
776777 *
777778 ${(0 to i).gen(j => if (j == 0 ) " *" else s " * @param ts $j the ${j.ordinal} ${mtype}" )(" \n " )}
778779 ${if (isComplex) s " * @param <L> the common left-hand type of all ${mtype}s \n " else " " }
@@ -796,7 +797,6 @@ def generateMainClasses(): Unit = {
796797 val forClassName = s " ForLazy $i$mtype"
797798 val parameterInset = if (monadicTypesThatNeedParameter.contains(mtype)) " L, " else " "
798799 val generics = parameterInset + (1 to i).gen(j => s " T $j" )(" , " )
799- val args = (1 to i).gen(j => s " ? super T $j" )(" , " )
800800
801801 val fields = (1 to i).gen { j =>
802802 if (j == 1 )
@@ -846,8 +846,8 @@ def generateMainClasses(): Unit = {
846846 * A lazily evaluated {@code For}-comprehension with ${i.numerus(mtype)}.
847847 *
848848 * <p>Constructed via {@code For(...)} and evaluated by calling {@code yield(...)}.
849- * Construction is side-effect free; underlying ${i.plural(mtype)} are only
850- * traversed when {@code yield(...)} is invoked.</p>
849+ * Construction is side-effect free; underlying ${i.plural(mtype)} are traversed
850+ * only when {@code yield(...)} is invoked.</p>
851851 *
852852 ${if (monadicTypesThatNeedParameter.contains(mtype)) s " * @param <L> the common left-hand type of all ${mtype}s \n " else " " }
853853 ${(1 to i).gen(j => s " * @param <T $j> the component type of the ${j.ordinal} ${mtype}" )(" \n " )}
@@ -864,9 +864,9 @@ def generateMainClasses(): Unit = {
864864 * Produces results by mapping the Cartesian product of all bound values.
865865 *
866866 * <p>Evaluation is lazy and delegated to the underlying ${i.plural(mtype)} by
867- * composing flatMap/ map chains.</p>
867+ * composing {@code flatMap} and {@code map} chains.</p>
868868 *
869- * @param f a function that maps a tuple of bound values to a result
869+ * @param f a function mapping a tuple of bound values to a result
870870 * @param <R> the element type of the resulting {@code $rtype}
871871 * @return an {@code $rtype} containing mapped results
872872 * @throws NullPointerException if {@code f} is {@code null}
0 commit comments