Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Rust

Idiom #243 Print list

Print the contents of the list or array a on the standard output.

println!("{:?}", a)

a is a Vec.
Vec<T> doesn't implement the Display trait, however it implements the Debug trait.
(print a)

New implementation...