omry / omegaconf

Flexible Python configuration system. The last one you will ever need.
BSD 3-Clause "New" or "Revised" License
1.99k stars 115 forks source link

Resolve length of list #1167

Closed manurare closed 8 months ago

manurare commented 8 months ago

Hello,

Is there a way of resolving the length of a list in a yaml file? Something like:

my_list:
- 4
- 2
- 1
length: ${len.my_list}

Thanks

manurare commented 8 months ago

My bad. I can do this with custom resolvers.