(ddd-themes.info)List Properties


Next: Accessing List Elements Prev: Creating Lists Up: List Functions
Enter node , (file) or (file)node

B.12.2 List Properties
----------------------

 -- VSL Function: isatom (x)
     Returns True (1) if X is an atom; False (0) if X is a list.

 -- VSL Function: islist (x)
     Returns True (1) if X is a list; False (0) if X is an atom.

 -- VSL Function: member (x, list)
     Returns True (1) if X is an element of LIST; False (0) if not:
     `member(1, [1, 2, 3]) => true'

 -- VSL Function: prefix (sublist, list)
 -- VSL Function: suffix (sublist, list)
 -- VSL Function: sublist (sublist, list)
     Returns True (1) if SUBLIST is a prefix / suffix / sublist of
     LIST; False (0) if not: `prefix([1], [1, 2]) => true',
     `suffix([3], [1, 2]) => false', `sublist([2, 2], [1, 2, 2, 3]) =>
     true',

 -- VSL Functions: length (list)
     Returns the number of elements in LIST: `length([1, 2, 3]) => 3'


automatically generated by info2www version 1.2.2.9