Skip to content

Std\Format

Format – string formatting with positional placeholders.

Provides printf-style string formatting using {} placeholders filled from a sequence of values.

Format a template string by replacing {} placeholders with values from the args sequence, in order.

import format from Std\Format in
format "Hello, {}! You are {} years old." ["Alice", "30"]
# => "Hello, Alice! You are 30 years old."