def commonprefix(m):
    if not m: return ''
    prefix = m[0]
    for item in m:
        for i in range(len(prefix)):
            if prefix[:i+1] <> item[:i+1]:
                prefix = prefix[:i]
                if i == 0: return ''
                break
    return prefix
The primary splay operation. Splaying happens all the way
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/javapath.py/commonprefix--crossover with--dataset/ETHPy150Open christabor/MoAL/MOAL/data_structures/trees/splay_trees.py/SplayTree.splay