Skip to content

unify - empty unifier list #120

@MaxOstrowski

Description

@MaxOstrowski

Calling unify with an empty Predicate list or None causes the following error:
ValueError: The unifier must be a list of predicates or a SymbolPredicateUnifier
Would it make sense to allow the empty list (or None) and return an empty FactBase ?
In my case, the list is given from outside (maybe user input, maybe problem dependent, and this would make it more general, like a default case.
Do you think this makes sense ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions