Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Add zipWith operation #221

@julienrf

Description

@julienrf

It’s a generalization of zip, its signature would be the following:

trait IterableOps[A, CC[_], C] {
  def zipWith[B, R](that: Iterable[B])(f: (A, B) => R): CC[R]
}

Semantically speaking, (xs zip ys) map f is equivalent to xs.zipWith(ys)(f).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions