Skip to content

Function adjacent

function adjacent(Fn &&, E1 &&) base

template <typename Fn, typename E1>
KFR_INTRINSIC expression_adjacent<Fn, E1> adjacent(Fn&& fn, E1&& e1)

Creates an expression that returns the result of calling \(fn(x_i, x_{i-1})\) .

Template parameters
Fn binary callable applied to consecutive values
E1 input expression type
Parameters
fn callable receiving (current, previous)
e1 input expression
Returns
an expression_adjacent

Fully qualified name: kfr::adjacent(Fn &&, E1 &&)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.