mdedetrich / linked-map

Provides an implementation for an immutable map that maintains key ordering
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

How to try it out in a local project? #5

Open tdb-alcorn opened 5 years ago

tdb-alcorn commented 5 years ago

Could you add some instructions on how to try out this library in a local project?

In my case, I have cloned your repo and published it locally (publishLocal) but I'm having trouble understanding how to actually use LinkedMap or VecMap in my application. sbt is happy when I add this line to my build.sbt library dependencies

"linked-map" % "linked-map_2.11" % "0.1.0-SNAPSHOT"

but I can't figure out how to import it. import scala.collections.immutable.LinkedMap doesn't work for me.

jackkoenig commented 5 years ago

~This project does not appear to be published so try publishing it yourself by first cloning the repo and then doing sbt publishLocal (which should publish for just 2.11) or sbt +publishLocal (which will publish for 2.11, 2.12, and 2.13).~

EDIT: Sorry, I don't know how to read. In any case it should be scala.collection rather than scala.collectionS. That being said, I'm unable to import it even without the s.

tdb-alcorn commented 5 years ago

Woops, that was just a typo in my comment. I actually had import scala.collection.immutable.LinkedMap without the s in my code, which still doesn't work. I'm getting a simple object LinkedMap is not a member of package scala.collection.immutable. Any other ideas?

mdedetrich commented 5 years ago

Sorry for the late response.

I need to update this project to use the latest implementation that is now being used for Scala 2.13, which I will do sometime new year. It may be under a different repo name!