PlCompound Method (functor, args)

SWI-Prolog SbsSW.SwiPlCs

Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog PlCompound Method (functor, args)
SwiPlCs interfaceSbsSW.SwiPlCsPlTermPlCompound(String, PlTermV)

Create a compound term with the given name from the given vector of arguments. See PlTermV for details.

Declaration Syntax
C# Visual Basic Visual C++
public static PlTerm PlCompound(
	string functor,
	PlTermV args
)
Public Shared Function PlCompound ( _
	functor As String, _
	args As PlTermV _
) As PlTerm
public:
static PlTerm PlCompound(
	String^ functor, 
	PlTermV args
)
Parameters
functor (String)
The functor (name) of the compound term
args (PlTermV)
the arguments as a PlTermV
Return Value
a new PlTerm
Examples

The example below creates the Prolog term hello(world).

CopyC#
PlTerm t = PlTerm.PlCompound("hello", new PlTermv("world"));

Assembly: SwiPlCs (Module: SwiPlCs) Version: 1.1.60301.0 (1.1.60301.0)