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
WeakMap
WeakSet
Typically these collection facades are accompanied by a "wrapper" to implement Scala collection APIs e.g.
scala-js/library/src/main/scala-new-collections/scala/scalajs/js/WrappedMap.scala
Lines 22 to 26 in 2fa0a0a
However, in this case neither WeakMap nor WeakSet can fully implement any Scala collection API because they are not iterable.
So I suppose the pattern here would be to add WeakMapOps and WeakSetOps, that add Scala collections-like syntax to the facades for supported ops.
WeakMapOps
WeakSetOps
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Typically these collection facades are accompanied by a "wrapper" to implement Scala collection APIs e.g.
scala-js/library/src/main/scala-new-collections/scala/scalajs/js/WrappedMap.scala
Lines 22 to 26 in 2fa0a0a
However, in this case neither
WeakMap
norWeakSet
can fully implement any Scala collection API because they are not iterable.So I suppose the pattern here would be to add
WeakMapOps
andWeakSetOps
, that add Scala collections-like syntax to the facades for supported ops.The text was updated successfully, but these errors were encountered: