Return a new dom::Array based on a transformed lazy array implementation.
<mrdocs/Dom/LazyArray.hpp>
template<
std::ranges::random_access_range T,
class F>
requires std::invocable<F, std::ranges::range_value_t<T>> &&
HasStandaloneValueFrom<std::invoke_result_t<F, std::ranges::range_value_t<T>>>
Array
TransformArray(
T const& arr,
F const& f);
Name | Description |
---|---|
arr | The underlying range of elements. |
f | The transform function to apply to each element before converting it to a dom::Value. |