Open futurist opened 1 month ago
This is currently already possible if you create a custom VariableMap
and implement this logic there.
Or, you could simple create a map, fill it with entries from std::env::vars()
and then insert other variables.
It would be possible to add combinators to variable maps, a bit like the combinators for iterators in the standard library. But I'm not sure if it would really be worth the added complexity.
Like below: