This message was deleted.
# community-support
s
This message was deleted.
v
Copy code
val foo1 = objects.property<String>()
val foo2 = objects.property<String>()
val foo3 = objects.property<String>()
val foo4 = objects.property<String>()

val bar = objects.mapProperty<String, String>()

bar.put("foo1", foo1)
bar.put("foo2", foo2)
bar.put("foo3", foo3)
bar.put("foo4", foo4)
?
Or do you want the providers from the extension as keys, not values?
b
I want them as values so this should work! I'm going to check thanks!
👌 1
v
Besides that, if you want to combine providers lazily, what you are after is
zip(...)
.
1
b
Your first solution works! I'm going to check
zip
and see which is easier to read. Thanks you 🙂
v
That was just general info for the future. You don't want to use
zip
here, especially as you can only
zip
two providers. So you would
zip
foo1
with
foo2
, then
zip
the result with
foo3
, and then
zip
the result with
foo4
b
Yes, I just triead and you are right,
zip
doesn't work well for my use case. Again thank you for all the help :)
👌 1