| A | |
| append [List] | 
Catenate two lists.
 | 
| assoc [List] | assoc a lreturns the value associated with keyain the list of
   pairsl. | 
| assq [List] | 
Same as  List.assoc, but uses physical equality instead of structural
   equality to compare keys. | 
| C | |
| combine [List] | 
Transform a pair of lists into a list of pairs:
    combine [a1; ...; an] [b1; ...; bn]is[(a1,b1); ...; (an,bn)]. | 
| concat [List] | 
Concatenate a list of lists.
 | 
| E | |
| exists [List] | exists p [a1; ...; an]checks if at least one element of
   the list satisfies the predicatep. | 
| exists2 [List] | 
Same as  List.exists, but for a two-argument predicate. | 
| F | |
| fast_sort [List] | 
Same as  List.sortorList.stable_sort, whichever is faster
    on typical input. | 
| filter [List] | filter p lreturns all the elements of the listlthat satisfy the predicatep. | 
| find [List] | find p lreturns the first element of the listlthat satisfies the predicatep. | 
| find_all [List] | find_allis another name forList.filter. | 
| flatten [List] | 
Same as  concat. | 
| fold_left [List] | List.fold_left f a [b1; ...; bn]isf (... (f (f a b1) b2) ...) bn. | 
| fold_left2 [List] | List.fold_left2 f a [b1; ...; bn] [c1; ...; cn]isf (... (f (f a b1 c1) b2 c2) ...) bn cn. | 
| fold_right [List] | List.fold_right f [a1; ...; an] bisf a1 (f a2 (... (f an b) ...)). | 
| fold_right2 [List] | List.fold_right2 f [a1; ...; an] [b1; ...; bn] cisf a1 b1 (f a2 b2 (... (f an bn c) ...)). | 
| for_all [List] | for_all p [a1; ...; an]checks if all elements of the list
   satisfy the predicatep. | 
| for_all2 [List] | 
Same as  List.for_all, but for a two-argument predicate. | 
| H | |
| hd [List] | 
Return the first element of the given list.
 | 
| I | |
| iter [List] | List.iter f [a1; ...; an]applies functionfin turn toa1; ...; an. | 
| iter2 [List] | List.iter2 f [a1; ...; an] [b1; ...; bn]calls in turnf a1 b1; ...; f an bn. | 
| L | |
| length [List] | 
Return the length (number of elements) of the given list.
 | 
| M | |
| map [List] | List.map f [a1; ...; an]applies functionftoa1, ..., an,
   and builds the list[f a1; ...; f an]with the results returned byf. | 
| map2 [List] | List.map2 f [a1; ...; an] [b1; ...; bn]is[f a1 b1; ...; f an bn]. | 
| mem [List] | mem a lis true if and only ifais equal
   to an element ofl. | 
| mem_assoc [List] | 
Same as  List.assoc, but simply return true if a binding exists,
   and false if no bindings exist for the given key. | 
| mem_assq [List] | 
Same as  List.mem_assoc, but uses physical equality instead of
   structural equality to compare keys. | 
| memq [List] | 
Same as  List.mem, but uses physical equality instead of structural
   equality to compare list elements. | 
| merge [List] | 
Merge two lists:
    Assuming that  l1andl2are sorted according to the
    comparison functioncmp,merge cmp l1 l2will return a
    sorted list containting all the elements ofl1andl2. | 
| N | |
| nth [List] | 
Return the n-th element of the given list.
 | 
| P | |
| partition [List] | partition p lreturns a pair of lists(l1, l2), wherel1is the list of all the elements oflthat
   satisfy the predicatep, andl2is the list of all the
   elements oflthat do not satisfyp. | 
| R | |
| remove_assoc [List] | remove_assoc a lreturns the list of
   pairslwithout the first pair with keya, if any. | 
| remove_assq [List] | 
Same as  List.remove_assoc, but uses physical equality instead
   of structural equality to compare keys. | 
| rev [List] | 
List reversal.
 | 
| rev_append [List] | List.rev_append l1 l2reversesl1and concatenates it tol2. | 
| rev_map [List] | |
| rev_map2 [List] | |
| S | |
| sort [List] | 
Sort a list in increasing order according to a comparison
   function.
 | 
| split [List] | 
Transform a list of pairs into a pair of lists:
    split [(a1,b1); ...; (an,bn)]is([a1; ...; an], [b1; ...; bn]). | 
| stable_sort [List] | 
Same as  List.sort, but the sorting algorithm is guaranteed to
   be stable (i.e. | 
| T | |
| tl [List] | 
Return the given list without its first element.
 |