'Return a sequence (list) corresponding with the given function.
Return a numpy array if possible.'

def _listarr(self, func):

    lst = [func(i) for i in range(len(self))]
    if numpy:
        return numpy.array(lst)
    else:
        return lst
