lppl  v2.0.0

◆ reduce()

template<typename V >
template<typename Callable >
V value_collection_t< V >::reduce ( Callable  fn)
inline

Reduce the vector of posterior results to a scalar using a callable.

reduce :: ([v] -> v) -> [v] -> v

Todo:

efficiency!

implement foldl' and keep this as a special case

Template Parameters
Callable
Parameters
fn
Returns
V