tests whether the argument is not a variable.
nonvar/1 succeeds if Term is not a variable otherwise it fails.
Term term
| nonvar('this is an atom'). | Succeeds. |
| nonvar([l,i,s,t]). | Succeeds. |
| nonvar(Variable). | Fails. |
| nonvar(_27). | Fails. |
This predicate is part of the ISO-Prolog Standard.
| scroll to top |
|