src/pybel/parser/utils.py
def nest(*content):
    """Define a delimited list by enumerating each element of the list."""
    if len(content) == 0:
        raise ValueError('no arguments supplied')
    return And([LPF, content[0]] + list(itt.chain.from_iterable(zip(itt.repeat(C), content[1:]))) + [RPF])
Define a delimited list by enumerating each element of the list.
Define a delimited list by enumerating each element of the list.
Define a delimited list by enumerating each element of the list .
def nest(*content):
    if len(content) == 0:
        raise ValueError('no arguments supplied')
    return And([LPF, content[0]] + list(itt.chain.from_iterable(zip(itt.repeat(C), content[1:]))) + [RPF])
def nest ( * content ) : if len ( content ) == 0 : raise ValueError ( 'no arguments supplied' ) return And ( [ LPF , content [ 0 ] ] + list ( itt . chain . from_iterable ( zip ( itt . repeat ( C ) , content [ 1 : ] ) ) ) + [ RPF ] )
Define a delimited list by enumerating each element of the list.
Define a delimited list by enumerating each element of the list .
"""Define a delimited list by enumerating each element of the list."""