Hacker News new | ask | show | jobs
by wereHamster 3199 days ago
The pair of functions form an isomorphism. You have these two laws:

    forall x. objToArray(arrayToObj(x)) == x
    forall x. arrayToObj(objToArray(x)) == x