tinymist_std::typst::foundations::repr

Function pretty_array_like

pub fn pretty_array_like(
    parts: &[impl AsRef<str>],
    trailing_comma: bool,
) -> String
Expand description

Formats an array-like construct.

Tries to format horizontally, but falls back to vertical formatting if the pieces are too long.