Skip to content

Commit

Permalink
Update Applicative.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Dec 15, 2021
1 parent 4db803d commit 7202044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/core/src/mill/define/Applicative.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ object Applicative {

def zipMap[R]()(cb: Ctx => Z[R]) = mapCtx(zip()) { (_, ctx) => cb(ctx) }
def zipMap[A, R](a: T[A])(f: (A, Ctx) => Z[R]) = mapCtx(a)(f)
def zipMapLong[R](xs: IndexedSeq[T[Any]])(f: (IndexedSeq[Any], Ctx) => Z[R]) = {
def zipMapLong[R](xs: Seq[T[Any]])(f: (IndexedSeq[Any], Ctx) => Z[R]) = {
var recursiveZipped: T[_] = zip()
for(x <- xs) {
recursiveZipped = zip(recursiveZipped, x)
Expand Down

0 comments on commit 7202044

Please sign in to comment.