clipspy-1.0.0/clips/values.py
def multifield_value(env: ffi.CData, values: (list, tuple)) -> ffi.CData:
    """Convert a Python list or tuple into a CLIPS multifield."""
    if not values:
        return lib.EmptyMultifield(env)

    builder = common.environment_builder(env, 'multifield')

    lib.MBReset(builder)
    for value in values:
        lib.MBAppend(builder, clips_value(env, value))

    return lib.MBCreate(builder)
Convert a Python list or tuple into a CLIPS multifield.
Convert a Python list or tuple into a CLIPS multifield.
Convert a Python list or tuple into a CLIPS multifield .
def multifield_value(env: ffi.CData, values: (list, tuple)) -> ffi.CData:
    if not values:
        return lib.EmptyMultifield(env)
    builder = common.environment_builder(env, 'multifield')
    lib.MBReset(builder)
    for value in values:
        lib.MBAppend(builder, clips_value(env, value))
    return lib.MBCreate(builder)
def multifield_value ( env : ffi . CData , values : ( list , tuple ) ) -> ffi . CData : if not values : return lib . EmptyMultifield ( env ) builder = common . environment_builder ( env , 'multifield' ) lib . MBReset ( builder ) for value in values : lib . MBAppend ( builder , clips_value ( env , value ) ) return lib . MBCreate ( builder )
Convert a Python list or tuple into a CLIPS multifield.
Convert a Python list or tuple into a CLIPS multifield .
"""Convert a Python list or tuple into a CLIPS multifield."""
env
ffi.CData
values
(list, tuple)