Subject not found.
1.

What Do You Mean By String Interpolation In Elixir?

Answer»

STRING interpolation is a way to construct a NEW String value. The code is wrap with CURLY braces and '#' sign.

Example:

x = "APOCALYPSE"

y = "X-men #{x}"

IO.puts(y)

String interpolation is a way to construct a new String value. The code is wrap with curly braces and '#' sign.

Example:

x = "Apocalypse"

y = "X-men #{x}"

IO.puts(y)



Discussion

No Comment Found