scala - String interpolator with variable -
Assume that I want to create a still string, I can do this s "" 123 "" < / Code>, but if 123 is already defined in the variable
[result]
val result = "123"
I have not been, I do not know whether there is a syntax for combining S (interpolator) with string variable or for static text only? "Text">
The whole point of the string projection is to do this.
scala & gt; Val result = "123" result: string = 123 scale & gt; S "this -> $ result" res0: string = this -> 123
Comments
Post a Comment