submit {rswipl} | R Documentation |
Submit a query that has been opened with query()
before.
Description
Submit a query that has been opened with query()
before.
Usage
submit()
Value
If the query fails, FALSE
is returned. If the query succeeds, a
(possibly empty) list is returned that includes the bindings required to
satisfy the query.
See Also
query()
for a opening a query.
clear()
for a clearing a query.
Examples
query(call("member", expression(X), list(quote(a), "b", 3L, 4, expression(Y))))
submit() # X = 3L
submit() # X = 4.0
submit() # X = TRUE
submit() # X = expression(Y) or Y = expression(X)
submit() # FALSE
submit() # warning that no query is open
query(call("member", expression(X), list(quote(a), "b", 3L, 4)))
submit() # X = a
submit() # X = "b"
clear()
[Package rswipl version 9.3.5.1 Index]