do you have to create your own custom sequence in order to make a range on a custom object?
n
nanodeath
09/08/2020, 5:04 PM
according to the docs you should be fine if you implement the
rangeTo
operator
nanodeath
09/08/2020, 5:09 PM
as for whether you need to create your own sequence...I think you can return whatever you want
v
vinny2020
09/09/2020, 4:14 PM
Yeah, it looks like making a range that can be iterated is optional. For my purposes I just need be able to use in/contains on the custom object’s range