I'd like to thank everyone for their help! I was finally able to do what I'd like. I didn't end up using a variant, but maybe there's a better way to do what I want using it, and I just couldn't figure it out.

Here's the solution I finally came up with:
https://run.dlang.io/is/GdDDBp

If anyone has any better solutions I'm all ears!

Reply via email to