Open
Description
Issue by brycelelbach
Wednesday Oct 20, 2021 at 16:04 GMT
Originally opened as NVIDIA/stdexec#218
I'd like to have a way to have the result of a function passed to then
sent as multiple values. I've come across the need for this multiple times.
E.g. I want to be able to do something like this:
then([] (T t) { return some_magic{t, U{}}; })
| then([] (T t, U u) { /* ... */ })
Today, I instead have to write something like:
then([] (T t) { return std::tuple{t, U{}}; })
| then([] (std::tuple<T, U> t) { auto [t, u] = t; /* ... */ })
which I find quite inelegant.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Ready