Basic module

FormatArray

structSource

Print settings for one array: the separator and brackets, and how many elements to show before the output is cut with ....

Example↗
numbers := int.[1, 2, 3];
format := FormatArray.{ value = numbers, separator = " | ", begin_string = "<", end_string = ">" };
assert(tprint("%", format) == "<1 | 2 | 3>");

Fields

formatter: Formatter
separator: := ", "
begin_string: := "["
end_string: := "]"
printing_stopped_early_string: := "..."
draw_separator_after_last_element: := false
stop_printing_after_this_many_elements: := 100

See also