MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / outer_join

Method outer_join

functional/pipeline.py:1228–1240  ·  view source on GitHub ↗

Sequence and other must be composed of (Key, Value) pairs. If self.sequence contains (K, V) pairs and other contains (K, W) pairs, the return result is a sequence of (K, (V, W)) pairs. One of V or W will always be not None, but the other may be None >>> seq([('a', 1

(self, other)

Source from the content-addressed store, hash-verified

1226 return self.join(other, "right")
1227
1228 def outer_join(self, other):
1229 """
1230 Sequence and other must be composed of (Key, Value) pairs. If self.sequence contains (K, V)
1231 pairs and other contains (K, W) pairs, the return result is a sequence of (K, (V, W)) pairs.
1232 One of V or W will always be not None, but the other may be None
1233
1234 >>> seq([('a', 1), ('b', 2)]).outer_join([('a', 3), ('c', 4)], "outer")
1235 [('a', (1, 3)), ('b', (2, None)), ('c', (None, 4))]
1236
1237 :param other: sequence to join with
1238 :return: outer joined sequence of (K, (V, W)) pairs
1239 """
1240 return self.join(other, "outer")
1241
1242 def partition(self, func):
1243 """

Callers 1

test_outer_joinMethod · 0.80

Calls 1

joinMethod · 0.95

Tested by 1

test_outer_joinMethod · 0.64