Y
Hacker News
new
|
ask
|
show
|
jobs
by
paavohtl
3199 days ago
It's a pair of transformations between [A] and { a: A }, not between arbitrary arrays and objects.
As long as you know what the transformation is, you can convert between them without data loss.