submit: Submit a query that has been opened with 'query()' before.

View source: R/query.R

submitR 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()


rswipl documentation built on April 3, 2025, 5:53 p.m.