Skip to Content.
Sympa Menu

k-user - [K-user] 'in' operator for List of Lists

k-user AT lists.cs.illinois.edu

Subject: K-user mailing list

List archive

[K-user] 'in' operator for List of Lists


Chronological Thread 
  • From: Omar Duhaiby <3omarz AT gmail.com>
  • To: "k-user AT cs.uiuc.edu" <k-user AT cs.uiuc.edu>
  • Cc: "Musab A. AlTurki" <musab AT kfupm.edu.sa>
  • Subject: [K-user] 'in' operator for List of Lists
  • Date: Sun, 28 Dec 2014 18:12:06 +0300
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
  • List-id: <k-user.cs.uiuc.edu>

I have the following list of lists:
ListItem (
    ListItem ( 1 )
    ListItem ( 6 ) )
ListItem (
    ListItem ( 1 )
    ListItem ( 4 ) )
ListItem (
    ListItem ( 2 )
    ListItem ( 5 ) )

I want to check if the list (2,5) is in that list. Using the 'in' operator didn't work for me.

My intention was to make a list of coordinates. Perhaps there is a better representation for it. What do you think?

Thank you
Omar Alzuhaibi



Archive powered by MHonArc 2.6.16.

Top of Page