Just double it
scala> val name = "foo"
name: String = foo
scala> s"my.package.$name$$"
res0: String = my.package.foo$
More Related Contents:
- Apache Spark – Scala – ReduceByKey – with keys repeating up to twice only
- Spark – load CSV file as DataFrame?
- What is a higher kinded type in Scala?
- What is the difference between Scala’s case class and class?
- Confused with the for-comprehension to flatMap/Map transformation
- Dropping a nested column from Spark DataFrame
- Underscore in Named Arguments
- sbt-assembly: deduplication found error
- What does param: _* mean in Scala?
- Spark dataframe write method writing many small files
- Syntax sugar: _* for treating Seq as method parameters
- Scala 2.8 collections design tutorial
- java.lang.NoClassDefFoundError: org/apache/spark/streaming/twitter/TwitterUtils$ while running TwitterPopularTags
- How to use COGROUP for large datasets
- Scala classOf for type parameter
- What are possible reasons for receiving TimeoutException: Futures timed out after [n seconds] when working with Spark [duplicate]
- Why does join fail with “java.util.concurrent.TimeoutException: Futures timed out after [300 seconds]”?
- Create new Dataframe with empty/null field values
- Can I get a compile-time list of all of the case objects which derive from a sealed parent in Scala?
- Scala “
- How does type Dynamic work and how to use it?
- Why are singleton objects more object-oriented?
- In Scala, what does “view” do?
- How to write a proper null-safe coalescing operator in scala?
- How to explode an array into multiple columns in Spark
- Difference between case object and object
- How to read a file as a byte array in Scala
- How to sort an RDD in Scala Spark?
- Spark UDF with varargs
- How to transpose an RDD in Spark