The Battle for Wesnoth  1.19.19+dev
Functions
wfl::implementation Namespace Reference

Functions

template<typename Func >
variant zip_transform (const variant &v1, const variant &v2, const Func &op_func)
 Applies the provided function to the corresponding variants in both lists. More...
 

Function Documentation

◆ zip_transform()

template<typename Func >
variant wfl::implementation::zip_transform ( const variant v1,
const variant v2,
const Func &  op_func 
)

Applies the provided function to the corresponding variants in both lists.

Todo:
Expose this to the public API.

Definition at line 553 of file variant.cpp.

References wfl::variant::as_list(), and i.

Referenced by wfl::variant::list_elements_add(), wfl::variant::list_elements_div(), wfl::variant::list_elements_mul(), and wfl::variant::list_elements_sub().