How to use third party libraries with Scala REPL?

后端 未结 4 476
太阳男子
太阳男子 2020-12-02 21:38

I\'ve downloaded Algebird and I want to try out few things in the Scala interpreter using this library. How do I achieve this?

4条回答
  •  情歌与酒
    2020-12-02 22:22

    You can use the scala's -cp switch to keep jars on the classpath. There are other switches available too, for example, -deprecation and -unchecked for turning on various warnings. Many more to be found with scala -X... and scala -Y.... You can find out more information about these switches with scala -help

提交回复
热议问题