lukewestby / elm-string-interpolate / String.Interpolate

String.Interpolate provides a convenient method interpolate for injecting values into a string. This can be useful for i18n of apps and construction of complex strings in views.

interpolate : String -> List String -> String

Inject other strings into a string in the order they appear in a List interpolate "{0} {2} {1}" ["hello", "!!", "world"] "{0} {2} {1}" interpolate ["hello", "!!", "world"]