class Foo
include Bud
state do
channel :l
channel :r
table :lside
table :rside
#scratch :rside
scratch :result
end
bloom do
lside <= l
rside <= r
result <= (lside * rside).lefts(:val => :val)
stdio <~ result.inspected
end
end
f = Foo.new(:port => 12345)
f.l <~ [["localhost:12345", 2]]
f.r <~ [["localhost:12345", 2]]
f.tick; f.tick
The program above produces no output. if rside is defined as a scratch instead of as a table, it does produce output.
The program above produces no output. if rside is defined as a scratch instead of as a table, it does produce output.