lib/veritas/algebra/join.rb in veritas-0.0.2 vs lib/veritas/algebra/join.rb in veritas-0.0.3
- old
+ new
@@ -68,9 +68,10 @@
#
# @return [self]
#
# @api public
def each(&block)
+ return to_enum unless block_given?
index = build_index
left.each do |tuple|
right_tuples = index[join_tuple(tuple)]
if right_tuples