I have just started using Scala and wish to better understand the functional approach to problem solving. I have pairs of strings the first has placeholders for parameter an
This is not a direct answer to your question but more of a Scala trick. You can interpolate strings in Scala by using xml:
val id = 250
val value = "some%"
select col1 from tab1 where id > {id} and name like {value}.text
// res1: String = select col1 from tab1 where id > 250 and name like some%
Eric.