def binlist2num(binlist, **kwargs): bigend = eftl.dflt_kwargs('bigend', True, **kwargs) if (bigend): pass else: binlist = elel.fcp(binlist) binlist.reverse() arr = elel.mapv(binlist, str) s = elel.join(arr) return (int(s, 2))
def prev(self): self.curr = prev_permutation(self.curr, **self.kwargs) #print(self.curr.__str__()) return (elel.fcp(self.curr))
def next(self): self.curr = next_combination(self.curr, self.full, **self.kwargs) return (elel.fcp(self.curr))
def prev(self): self.curr = prev_combination(self.curr, self.full, **self.kwargs) return (elel.fcp(self.curr))
def ppl2pl(tag,ppl): pl = elel.fcp(ppl) pl.append(tag) return(pl)