FStrings (F-strings v0.1.0)

View Source

FStrings module that provides the ~f"..." sigil to be able to do F-strings-like interpolation.

Check this for an intro and instructions on how to use it.

Summary

Functions

sigil_f(quoted_string, modifiers)

(macro)

~f sigil for f-strings.

Examples

iex> import FStrings
iex> abc=3
iex> ~f"The value 🎉 #{abc}="
"The value 🎉 'abc'='3'"
iex> sigil_f("hello world #{abc}= #{abc}", [])
"hello world 'abc'='3' 3"