• calcopiritus@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    vor 2 Monaten

    Anything that’s not an integer or a range doesn’t belong inside []. Much more readable to use zip, map, filter, etc. And more powerful.

    EDIT: that was meant for indexing lists. Strings inside [] for indexing ducts are fine.