
compound(?Term)

   Succeeds if Term is of type compound, i.e.  a structure or a list.



Arguments
   Term                Prolog term.

Type
   Type Testing

Description
   Used to test whether Term is a compound term.




Modes and Determinism
   compound(?) is semidet

Fail Conditions
   Fails if Term is not a compound term

Examples
   
   Success:
   compound(f(1,2)).
   compound([1,2,3]).
   compound(.(1,2)).
   Fail:
   compound("f(1,2)").
   compound(Term).
   compound(atom).





See Also
   atom / 1, atomic / 1, callable / 1, is_list / 1, var / 1
