How do I test nested Optional<Any> for nil?

If you want to flatten an arbitrary-depth Any? down to a single layer of optionality, you might find the thread Challenge: Flattening nested optionals relevant.

1 Like