scalaguavaminmax-heap

Min Max Priority Queue for Scala


I am searching a library with a MaxMinPriorityQueue like guava's one. As I can't use it because sbt fails when I add the dependency like this:

"com.google.guava" %% "guava" % "24.0-jre"

Its seems there is no build for scala, as it can be found:

com.google.guava:guava_2.11:24.0-jre: not found.

After searching for a while I found no similar Data Structure for Scala. Does someone knows of any implementation for a MinMaxPriorityQueue for scala?

Thanks.


Solution

  • This works

    "com.google.guava" % "guava" % "24.0-jre"
    

    Its written in java. so it doesn't need a scala version. thus you don't need to specify '%%' in the dependency.