std1.0.0-beta-7 SafeC docs

std :: collections::vec

Function std::vec_map

#include <std/collections/vec.h> source

generic<T, U> struct Vec<U> vec_map(const &Vec<T> v, fn U(const &T) f)

Maps every element through 'f' into a new Vec<U>.