[][src]Function cl_traits::create_array

pub fn create_array<A, F>(cb: F) -> A where
    A: Array,
    F: FnMut(usize) -> A::Item

Creates an array [T; N] where each array element T is returned by the cb call.