Is there a type that functions like
but without putting a wrapper around each value?
I have really big data sets, JS arrays containing up to 1,000,000 values, typically string, number or boolean, but also objects, so ??? above should preferable handle the recursive case.
I would instead like the ELM-case statement use run-time typeof checks.
Is this already implemented, what is it called?