Pointless API Docs

pointless/prelude/format.ptls (source)


format(fmtString, values) link
Use a format pattern to build a string with inserted values

example:

>> format("{} {}!", ["Hello", "world"])
"Hello world!"

example:

>> pairs  = [("dolor", 5), ("sit", 3), ("amet", 4)]
>> output = pairs |> map(format("[{<5} {}]")) |> printLines
[dolor 5]
[sit   3]
[amet  4]