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
::
This :: value: https://github.com/eaplatanios/tensorflow_scala/blob/master/modules/api/src/main/scala/org/platanios/tensorflow/api/package.scala#L80
Will shadow the :: List constructor. The List is a commonly used type from the Scala predef so removing the usability of :: is unexpected.
for example:
import org.platanios.tensorflow.api._ val oh :: no = List(1, 2)
will fail with
cmd0.sc:1: value :: is not a case class, nor does it have an unapply/unapplySeq member
The text was updated successfully, but these errors were encountered:
Alternatively: Always use +: ( https://www.scala-lang.org/api/current/scala/collection/package$$$plus$colon$.html ) as the pattern matcher. Does not match exactly on the cons case class but, for most uses, has the same effect and is generic across Seq types
+:
Sorry, something went wrong.
No branches or pull requests
This
::
value: https://github.com/eaplatanios/tensorflow_scala/blob/master/modules/api/src/main/scala/org/platanios/tensorflow/api/package.scala#L80Will shadow the
::
List constructor. The List is a commonly used type from the Scala predef so removing the usability of::
is unexpected.for example:
will fail with
The text was updated successfully, but these errors were encountered: