repeat.hpp
Go to the documentation of this file.
#define ABL_DECLTYPE_RETURN(body_expr)
Utility for defining generic functions with a deduced return type, that are composed of a single expr...
Definition: utils.hpp:109
constexpr auto repeat(ValueT &&r) -> repeat_t< estd::decay_t< ValueT > >
Generator transducer produces the values passed as parameter infinitely.
Definition: repeat.hpp:64
constexpr auto repeatn(IntegralT &&n, ValueTs &&...rs) -> decltype(comp(repeat(std::forward< ValueTs >(rs)...), take(std::forward< IntegralT >(n))))
Generator transducer produces the values passed as parameter up to n times.
Definition: repeat.hpp:82
auto take(IntegralT &&n) -> take_t< estd::decay_t< IntegralT > >
Similar to clojure.core/take$1.
Definition: take.hpp:87
Utility to write simple transducers easily.
Definition: transducer_impl.hpp:60