itertools::transform

#include <itertools.hpp>

Synopsis

template<typename T, typename L>
auto transform (T && range, L lambda)

Transform (lazy)applies a unary lambda function to every element of a range. It returns itself a range.

Parameters

  • range The range that the lambda is applied to