Closed tshort closed 1 year ago
Tests are passing so I'll merge and add an integration test -- I do have some concern that the whole "if startswith(...)" may be getting optimized out rather than compiled (which is fine here), but if so and this doesn't scale to cases where the content of the strings isn't statically known at compile-time then we can always add startswith/endswith (etc.) overloads that don't depend on Base.iterate
This changes the iteration to support the Base API to return Nothing as appropriate. The following example statically compiles: