bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
854 stars 59 forks source link

Block of notin broken? #243

Closed jonathandinu closed 13 years ago

jonathandinu commented 13 years ago

bc.notin(bc2) works for me using the hash pairs, but when I try to use the block to pass further parameters everything from the collection (bc) seems to get through. Here is a rebl output, but it also exhibits the same behavior in the bud runtime while running a file. Perhaps my rebl (and bud) has an error in it, but this is the exact example from the docs.

rebl> /lsrule 1: ts <= [[1,2],[3,4],[5,6]] 2: ns <= [[1,2],[4,4],[5,9]] 3: stdio <~ fil.inspected rebl> /tick rebl> /tick rebl> fil <+ ts.notin(ns, :key => :key) {|l,r| true if l.val <= r.val} rebl> /tick rebl> /tick [1, 2] [5, 6] [3, 4] rebl> /lsrule 1: ts <= [[1,2],[3,4],[5,6]] 2: ns <= [[1,2],[4,4],[5,9]] 3: stdio <~ fil.inspected 24: fil <+ ts.notin(ns, :key => :key) {|l,r| true if l.val <= r.val}

-Jonathan

*I uninstalled and reinstalled the bud gem right before this

jhellerstein commented 13 years ago

Fixed in 49e2fb76a2b2a5e8cd8aaff84850ac9b4d91015e