This clause succeeds if the argument is a compound term. This is a term that has a functor and one or more arguments.
see also: atom/1 atomic/1 float/1 integer/1 instance/1 nonvar/1 number/1 var/1
| Examples | |
| compound("hello"). | fails |
| compound(-10.1) | fails |
| compound(9). | fails |
| compound([]). | fails |
| compound([a]). | succeeds |
| compound(f(X). | succeeds |
| X=f(i), compound(X). | succeeds |