@sig(H/ ["a"] >> int )
def length(xs):
    """
    length :: [a] -> int

    Returns the size/length of a finite structure as an Int. The default
    implementation is optimized for structures that are similar to cons-lists,
    because there is no general way to do better.
    """
    return len(xs)


#=============================================================================#
# List transformations
dataset/ETHPy150Open billpmurphy/hask/hask/Data/List.py/length/original