clipspy-1.0.0/clips/functions.py
def call(self, function: str, *arguments) -> type:
        """Call the CLIPS function with the given arguments."""
        value = clips.values.clips_value(self._env)
        builder = environment_builder(self._env, 'function')

        lib.FCBReset(builder)
        for argument in arguments:
            lib.FCBAppend(
                builder, clips.values.clips_value(self._env, value=argument))

        ret = lib.FCBCall(builder, function.encode(), value)
        if ret != lib.FCBE_NO_ERROR:
            raise CLIPSError(self._env, code=ret)

        return clips.values.python_value(self._env, value)
Call the CLIPS function with the given arguments.
Call the CLIPS function with the given arguments.
Call the CLIPS function with the given arguments .
def call(self, function: str, *arguments) -> type:
        value = clips.values.clips_value(self._env)
        builder = environment_builder(self._env, 'function')
        lib.FCBReset(builder)
        for argument in arguments:
            lib.FCBAppend(
                builder, clips.values.clips_value(self._env, value=argument))
        ret = lib.FCBCall(builder, function.encode(), value)
        if ret != lib.FCBE_NO_ERROR:
            raise CLIPSError(self._env, code=ret)
        return clips.values.python_value(self._env, value)
def call ( self , function : str , * arguments ) -> type : value = clips . values . clips_value ( self . _env ) builder = environment_builder ( self . _env , 'function' ) lib . FCBReset ( builder ) for argument in arguments : lib . FCBAppend ( builder , clips . values . clips_value ( self . _env , value = argument ) ) ret = lib . FCBCall ( builder , function . encode ( ) , value ) if ret != lib . FCBE_NO_ERROR : raise CLIPSError ( self . _env , code = ret ) return clips . values . python_value ( self . _env , value )
Call the CLIPS function with the given arguments.
Call the CLIPS function with the given arguments .
"""Call the CLIPS function with the given arguments."""
self
function
str