charon_lib::common

Function pretty_display_list

source
pub fn pretty_display_list<T>(
    t_to_string: impl Fn(T) -> String,
    it: impl IntoIterator<Item = T>,
) -> String
Expand description

Custom function to pretty-print elements from an iterator The output format is:

[
  elem_0,
  ...
  elem_n
]