make_view, and then pretend it’s a normal container and use normal algorithms on it.
detail::hash_table? Even if it wasn't canonical clang it would be cool to have a "distro" with built-ins added specifically for optimizing hana internals.
A question about Hana:
Say I want to incrementally collect data in a tuple (or an equivalent heterogeneous container), i.e. incrementally add another value (and type) to the tuple.
I could use std::tuple_cat but I would need to copy and store the result in a different local variable for each such cat.
I can’t use std::any since I won’t know the contained type. Is there such a way to extract the contained type of an any?
Is it possible to have a single local variable that supports such "insert"s preferably without copying?
Does Hana have such a facility?
One obvious way to do this is to incrementally serialize the data (e.g. to json) and reparse it later, but this seems a bit roundabout.
//...operations into separate functions. IMO large multipurpose functions are a bit of a no-no anyways. :coffee:
hana::Foldableis known at compile-time. You shouldn't need to put it in a run-time list.