### FIXME: for compatibility with older versions, eventually emit warning

function(x, ...) newList("SimpleIRangesList", lapply(x, ranges))
setMethod("start", "SimpleViewsList", function(x, ...) start(ranges(x)))
setMethod("end", "SimpleViewsList", function(x, ...) end(ranges(x)))
function(x, rev = FALSE, use.names = FALSE)
rev <- normargAtomicList1(rev, LogicalList, length(x))
max_width <- max(max(width(restrict(ranges(x), start = 1L))))
m <- do.call(rbind, mapply(as.matrix, x, rev,
rownms <- as.integer(IRanges(1L, width = elementLengths(x)))
rownames(m) <- paste(nms, rownms, sep = ".")

## Not loading the methods package can cause some strange 'R CMD check'
## WARNINGs. For example, on a BSgenome data package (with R 2.14.0):
##   * checking whether the namespace can be loaded with stated dependencies ... WARNING
##   Error: .onLoad failed in loadNamespace() for ‘BSgenome.Celegans.UCSC.ce2’, details:
##     error: could not find function "loadMethod"
##   A namespace must be able to be loaded with just the base namespace
##   loaded: otherwise if the namespace gets loaded by a saved object, the
##   Probably some imports need to be declared in the NAMESPACE file.
## However, loading the methods package with library(methods) produces the
## following 'R CMD check' NOTE (with R 2.14.0):
##   * checking R code for possible problems ... NOTE
##   Package startup functions should not change the search path.
##   See section ‘Good practice’ in ?.onAttach.
## So we cheat on codetools to avoid this NOTE.

### Title: Lists of Atomic Vectors in Natural and Rle Form
### Aliases: class:AtomicList AtomicList-class AtomicList
###   SimpleAtomicList class:LogicalList LogicalList-class LogicalList
###   SimpleLogicalList class:IntegerList IntegerList-class IntegerList
###   SimpleIntegerList class:NumericList NumericList-class NumericList
###   SimpleNumericList class:ComplexList ComplexList-class ComplexList
###   SimpleCharacterList class:RawList RawList-class RawList
###   class:SimpleRawList SimpleRawList-class SimpleRawList class:RleList
###   RleList-class RleList class:CompressedRleList CompressedRleList-class
# equivalent to (but faster than) 'sapply(col1, sum)'