Function Repository Resource:

StringPrepend

Source Notebook

Prepend a string to another string

Contributed by: Ian Ford (Wolfram Research)

ResourceFunction["StringPrepend"]["string","pre"]

prepends the string pre to string.

ResourceFunction["StringPrepend"]["pre"]

represents an operator form of ResourceFunction["StringPrepend"] that can be applied to an expression.

Examples

Basic Examples (1) 

Prepend a string to a list of strings:

In[1]:=
ResourceFunction["StringPrepend"]["hello "] /@ {"world", "universe", "goodbye"}
Out[1]=

Version History

  • 1.0.0 – 12 September 2019

Related Resources

License Information