Skip to content

Small typo in program-14.15. #4

@ghost

Description

Hello,

program-14.15:58 should read

lookup(X,[(X1,V1)|XVs],V) :- X \= X1, lookup(X,XVs,V).

(with '\=' instead of '\==').

With '\==', Elisa loops forever if a stimulus contains a variable (i.e. a number) but that the rest of the Input does not match (at least, this is the behavior with SWI).

Regards,
Didier P.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions