The audacity to do such a thing…

  • @[email protected]
    link
    fedilink
    301 year ago

    Would one not just use a dict/hashmap with int keys labelling lengths and the list of strings as the values?

    • @[email protected]
      link
      fedilink
      29
      edit-2
      1 year ago

      A programmer might, as trained/conditioned by the limits of programming languages.

      A human would intuitively not, these are meaningless and/or convoluted concepts to the untrained human.

      • @[email protected]
        link
        fedilink
        161 year ago

        I like the implication that programmers aren’t humans, but a sort of alien being naturally apt at algorithmic thinking, while puny humans are an irrational species that needs to undergo training from the mighty race of programmers if they hope to get into the field brought us here by the aliens

      • @[email protected]
        link
        fedilink
        71 year ago

        ‘List’ is the correct abstract term for any data structure that holds a given number of values in an order, regardless of the implementation. So Python’s List, or C++'s Array or Vector, or a Linked List are all considered lists in the abstract sense.

      • @[email protected]
        link
        fedilink
        61 year ago

        I did use ‘list’ and forgot it is called an ‘array’ or ‘vector’ in other languages. So sure, close enough :-)

      • @avonarret1
        link
        31 year ago

        Because those are limited to Python? 😜