On this page:
gen:  statement
statement/  c
statement-constructor/  c
statement?
get-subject
get-predicate
get-object
statement<?

7.3 Generic Interface🔗ℹ

A generic interface (see Generic Interfaces) that defines a statement. To supply method implementations, a struct should use the #:methods form.

TBD

TBD

predicate

(statement? val)  boolean?

  val : any/c
TBD

The generic interface gen:statement has the following methods:

method

(get-subject stmt)  subject?

  stmt : statement?
Return the subject component of the statement structure.

method

(get-predicate stmt)  predicate?

  stmt : statement?
Return the predicate component of the statement structure.

method

(get-object stmt)  object?

  stmt : statement?
Return the object component of the statement structure.

predicate

(statement<? v1 v2)  boolean?

  v1 : statement?
  v2 : statement?
Returns #t if v1 and v2 are statement? values, and v1 is less than v2.