/** ** \file misc/list.hh ** \brief Declaration of misc::list */ #pragma once #include /// Wrappers on misc::vectors to provide functional-style list manipulation. namespace misc::list { /// Build a list of a \a head and a \a tail. template vector cons(const T head, const vector& tail); /// Get the head and tail of the list. Invert of cons. template std::pair> snoc(const vector& v); /// Decompose the list into an array to use structured bindings. template std::array decompose(const vector& v); } // namespace misc::list #include