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

Method right_join

functional/pipeline.py:1214–1226  ·  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. W values will always bepresent, V values may be present or None. >>> seq([('a', 1

(self, other)

Source from the content-addressed store, hash-verified

1212 return self.join(other, "left")
1213
1214 def right_join(self, other):
1215 """
1216 Sequence and other must be composed of (Key, Value) pairs. If self.sequence contains (K, V)
1217 pairs and other contains (K, W) pairs, the return result is a sequence of (K, (V, W)) pairs.
1218 W values will always bepresent, V values may be present or None.
1219
1220 >>> seq([('a', 1), ('b', 2)]).join([('a', 3), ('c', 4)])
1221 [('a', (1, 3)), ('b', (2, None)]
1222
1223 :param other: sequence to join with
1224 :return: right joined sequence of (K, (V, W)) pairs
1225 """
1226 return self.join(other, "right")
1227
1228 def outer_join(self, other):
1229 """

Callers 1

test_right_joinMethod · 0.80

Calls 1

joinMethod · 0.95

Tested by 1

test_right_joinMethod · 0.64