PlCompound Method (functor, args)

SbsSW.SwiPlCs

Copy image CopyHover image
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++ F#
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
)
static member PlCompound : 
        functor : string * 
        args : PlTermV -> PlTerm 
Parameters
functor (String)
The functor (name) of the compound term
args (PlTermV)
the arguments as a PlTermV
Return Value
Examples

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

  Copy imageCopy
PlTerm t = PlTerm.PlCompound("hello", new PlTermv("world"));

Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60605.0 (1.1.60605.0)