Vyxal / Vyxal

A code-golfing language experience that has aspects of traditional programming languages - terse, elegant, readable.

Home Page:https://vyxal.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transpose Does Not Work on Infinite Lists

lyxal opened this issue · comments

commented
while True:
        if any(has_ind(row, r) for row in matrix):
            this_row = gen_row(r)
            if all(type(x) is str for x in this_row):
                yield "".join(this_row)
            else:
                yield this_row

        else:
            break
        r += 1

That any is going to never finish on an infinite matrix if there's no such row

Hey, @lyxal, that's a nice issue you've got there! It'd sure be a shame if somebody were to assign you to it!

commented

Hey, @lyxal, that's a nice issue you've got there! It'd sure be a shame if somebody were to assign you to it!

L + ratio + don't care

commented

Expected behaviour