I was testing my new version of SWI prolog and keep coming across the error :singleton variable.
Example:
member(X,[X|T]).
member(X,[X|
You can read about it on the official page of SWI-Prolog FAQ
The most common cases this warning appears are:
SWI suggest some ways to ignore it:
_T
, _X
), to avoid warning and document what you ignore.:- style_check(-singleton).
and all warnings should go away.