Ejemplo n.º 1
0
def _extendSeqableForManuals():
    from clojure.lang.indexableseq import create as createIndexableSeq
    
    protocols.seq.extendForTypes(
        [pyTupleType, pyListType, pyStrType, pyUnicodeType],
        lambda obj: createIndexableSeq(obj))
    protocols.seq.extend(type(None), lambda x: None)
Ejemplo n.º 2
0
def _extendSeqableForManuals():
    from clojure.lang.indexableseq import create as createIndexableSeq
    from clojure.lang.persistentvector import PersistentVector
    
    protocols.seq.extendForTypes([tuple, type([]), str, unicode],
                                 lambda obj: createIndexableSeq(obj))
    protocols.seq.extend(type(None), lambda x: None)