String/text interpolation in Daml

I have a function that takes two Partys sender and receiver as arguments and would like to create a string “$sender sends an IOU to $receiver”.

How can I achieve this in Daml?

I found the following solution:

show sender <> " sends an IOU to " <> show receiver
4 Likes