top of page
Blog posts
Search
Creating sentences and lists from a series of items
Often, especially when creating text to show to a user in a dialog, I have a Collection or Array of Strings that I want to use to inform the user of some information. Code to compile those Strings into "clean" user-friendly text can be a pain to write ... for example, making sure the penultimate and last items are delimited by "and" instead of a comma especially when you don't know how many Strings will be included from the off.
4 days ago2 min read
Â
Â


String interpolation
Interpolation means 'inserting one thing into another'. In this case, inserting one (or more) 'sub' Strings into another 'main' String.
Apr 7, 20253 min read
Â
Â


Articles: Blog2
bottom of page