/** * The dual of a `AssociativeIdentity`, obtained by swapping the arguments of `concat`. * * @tsplus getter AssociativeIdentity inverted */ export function inverted(I: AssociativeIdentity): AssociativeIdentity { return AssociativeIdentity(I.identity, (x, y) => I.combine(y, x)) }