Skip to content

What is false?

Choose a tag to compare

@gilbert gilbert released this 10 Apr 20:01
· 11 commits to master since this release

Added support for using false in your predicates. Quick examples:

db = RubyProlog.new do
  foo[:_] << [false]
  foo['x'].fact

  bar[:_] << [:CUT, false]
  bar['x'].fact

  baz[false].fact
end

db.query{ foo['x'] }   #=> [{}]
db.query{ bar['x'] }   #=> []
db.query{ baz[false] } #=> [{}]