A Semialign with an empty structure nil that is the identity of align.
Laws:
Right identity: align(x, nil()) == fmap({ Ior.left(it) }, x)
align(x, nil()) == fmap({ Ior.left(it) }, x)
Left identity: align(nil(), x) == fmap({ Ior.right(it) }, x)
align(nil(), x) == fmap({ Ior.right(it) }, x)
Pairs up the values of a and b position by position, keeping unmatched values.
a
b
Combines a and b position by position with f, which receives the values present at each position.
f
Applies f to every value inside v.
v
Implements Invariant.imap by ignoring the backward function.
The empty structure.