SeqJoin/Beka00
SeqJoin/kv00msu
f1def joinseq(*sequence):f1def joinseq(*sequence):
n2    list_seq: list = [[next(seq), seq] for seq in [iter(subseq) for subseq in sequence]]n2    list_seq = list([[next(seq), seq] for seq in [iter(subseq) for subseq in sequence]])
3    while list_seq:3    while list_seq:
n4        symbal_min = list_seq[0][0]n4        symb_min = list_seq[0][0]
5        index = 05        index = 0
6        for (i, (j, s)) in enumerate(list_seq):6        for (i, (j, s)) in enumerate(list_seq):
n7            if j < symbal_min:n7            if j < symb_min:
8                index = i8                index = i
n9                symbal_min = jn9                symb_min = j
10        try:10        try:
11            list_seq[index][0] = next(list_seq[index][1])11            list_seq[index][0] = next(list_seq[index][1])
12        except Exception as ex:12        except Exception as ex:
13            list_seq.pop(index)13            list_seq.pop(index)
t14        yield symbal_mint14        yield symb_min
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op