hydra.overlay.python.lib.pairs module

Python implementations of hydra.overlay.python.lib.pairs primitives.

hydra.overlay.python.lib.pairs.bimap(f: Callable[[A], C], g: Callable[[B], D], pair: tuple[A, B]) tuple[C, D]

Map over both elements of a pair.

hydra.overlay.python.lib.pairs.first(pair: tuple[A, B]) A

Get the first element of a pair.

hydra.overlay.python.lib.pairs.pair(x: A, y: B) tuple[A, B]

Construct a pair from two values.

hydra.overlay.python.lib.pairs.second(pair: tuple[A, B]) B

Get the second element of a pair.