Function atools::splat

source ·
pub fn splat<T: Clone, const N: usize>(a: T) -> [T; N]
Expand description

Convenience function for when clonage is required; prefer [T; N] if possible. Also useful if N should be inferred.