Integrated Application Platform › Forums › General › [SOLVED]A string composing function to share › Re: Re: A string composing function to share
August 20, 2014 at 8:26 pm
#1077
Keymaster
Here’s an approach that uses the block form of Replace:
args = #("%2 %1 %3", one, two, three)
args[0].Replace("%[0-9]+", { args[Number(it[1..])] })
This might also be a candidate for adding as a method in Strings so you could say: string.Format(args)