]> xenbits.xensource.com Git - xcp/xen-api-libs.git/commit
Adds take and tails to our extended list module
authorMatthias Goergens <matthias.goergens@citrix.com>
Tue, 2 Feb 2010 16:00:16 +0000 (16:00 +0000)
committerMatthias Goergens <matthias.goergens@citrix.com>
Tue, 2 Feb 2010 16:00:16 +0000 (16:00 +0000)
commitdacca59f516e8aa94b88745e95455fd636fd1cbc
tree2feedbfa7fe27d19f800301e1c95815f1bb419db
parent12089933b8b08ebf11cce674bc218b5daebdf5d9
Adds take and tails to our extended list module

`take' gives the first n elements of a list (or less if the list is
shorter).  `tails' gives a list of all suffixes of a list.

Signed-off-by: Matthias Goergens <matthias.goergens@citrix.com>
stdext/listext.ml
stdext/listext.mli