We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kyo.foreach*
Either introduce specialized functions for Set, Map, etc or use an interface like IterableOnce https://github.com/getkyo/kyo/blob/main/kyo-kernel/shared/src/main/scala/kyo/Kyo.scala#L77-L97
IterableOnce
The text was updated successfully, but these errors were encountered:
What about the zio approach?
def foreach[A, B, Coll[_], S](collection: Coll[A])(fun: A => B < S)(using bf: BuildFrom[Coll[A], A, Coll[B]): Coll[B] < S = ???
Sorry, something went wrong.
Yes, that could work. The lack of specialization may be an issue for performance and or purity... BuildFrom doesn't specify (im)mutability IIRC.
BuildFrom
No branches or pull requests
Either introduce specialized functions for Set, Map, etc or use an interface like
IterableOnce
https://github.com/getkyo/kyo/blob/main/kyo-kernel/shared/src/main/scala/kyo/Kyo.scala#L77-L97
The text was updated successfully, but these errors were encountered: