https://www.somethingsblog.com/2024/10/18/seamless-data-conversion-arrays-to-sets-and-back-again/