intersperse.hpp File Reference

Forward declares `boost::hana::intersperse`

.
More...

## Namespaces | |

boost::hana | |

Namespace containing everything in the library. | |

## Variables | |

constexpr auto | boost::hana::intersperse |

Insert a value between each pair of elements in a finite sequence.Given a finite `Sequence` `xs` with a linearization of `[x1, x2, ..., xn]` , `intersperse(xs, z)` is a new sequence with a linearization of `[x1, z, x2, z, x3, ..., xn-1, z, xn]` . In other words, it inserts the `z` element between every pair of elements of the original sequence. If the sequence is empty or has a single element, `intersperse` returns the sequence as-is. In all cases, the sequence must be finite. More... | |

Forward declares `boost::hana::intersperse`

.

- Copyright
- Louis Dionne 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)