Python Forum
how to refer to a subset of a list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to refer to a subset of a list
#5
yes.

but i can envision a way to do it in an implementation of a list like object that contains values or references to other objects, with an interface API to this which can be done with methods.
    fake_list = real_list.subset(47,99)
    assert fake_list[0:52] == real_list[47:99]
i simply don't know if any implementation ever did this, like Python or Pike. i don't even want to look at Peril.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
how to refer to a subset of a list - by Skaperen - Jan-15-2022, 06:59 PM
RE: how to refer to a subset of a list - by Skaperen - Jan-16-2022, 02:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  bug in subset sum algorithm usercat123 3 1,514 Feb-07-2022, 05:41 AM
Last Post: deanhystad
  How to create subset in python? Bhavika 5 2,044 Nov-27-2021, 07:16 PM
Last Post: Gribouillis
  How to refer to particular cell GMCobraz 0 1,181 Jul-01-2020, 02:25 PM
Last Post: GMCobraz
  Grabbing a Subset of a String acemurdoc 3 2,687 Jun-18-2019, 04:57 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020