Anonymous user
Hash join: Difference between revisions
m
→{{header|Python}}
(added python) |
|||
Line 258:
return result
table1 = [(
(
(
(
(28, "Alan")]
table2 = [("Jonah", "Whales"),
("Jonah", "Spiders"),
("Alan", "Ghosts"),
("Alan", "Zombies"),
("Glory", "Buffy")]
for row in hashJoin(table1, table2):
Line 272 ⟶ 273:
{{out}}
<pre>
((
((
((
((
((
((28, 'Alan'), ('Alan', 'Zombies'))
((28, 'Glory'), ('Glory', 'Buffy'))
</pre>
|