Scala: transmitting array to vararg

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_42818402/article/details/100591085

Reference: https: //www.cnblogs.com/mustone/p/5711937.html

val pop = Array[String]("","","")
jedis.lpush("pop",pop:_*)

Guess you like

Origin blog.csdn.net/weixin_42818402/article/details/100591085