Cldr.List.intersperse-exclamation-mark
You're seeing just the function
intersperse-exclamation-mark
, go back to Cldr.List module for more information.
Specs
intersperse!([term()], Cldr.backend(), Keyword.t()) :: [String.t()] | no_return()
Formats a list using intersperse/2
but raises if there is
an error.
Examples
iex> Cldr.List.intersperse!(["a", "b", "c"], MyApp.Cldr, locale: "en")
["a", ", ", "b", ", and ", "c"]
iex> Cldr.List.intersperse!(["a", "b", "c"], MyApp.Cldr, locale: "en", format: :unit_narrow)
["a", " ", "b", " ", "c"]