I’ used title from a SO question ~3 years old here.
Is there a better approach in Julia 1.0+ how to test or dispatch to types that e.g support indexing or iteration, without using methodswith()?
In a word: no. Although you’re probably better off using hasmethod.
2 Likes