Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Is Subset Of...' topicStudent Support Forum > General > Archives > "Is Subset Of..."

Next Comment >Help | Reply To Topic
Author Comment/Response
garret
02/28/06 1:54pm

Greetings,

I have two ordered lists of varying length, how can I determine if list A is a subset of list B if order matters?

Ex: A = {1,2,3}
B = {2,3,4,5,1}
C = {5,7,2,1,2,3}

I would like A,B to return False and A,C to return True

I can't find a command anywhere that involves subsets beyond listing all possible subsets

Thanks

URL: ,

Subject (listing for 'Is Subset Of...')
Author Date Posted
Is Subset Of... garret 02/28/06 1:54pm
Re: Is Subset Of... S. Saralamba 02/28/06 7:44pm
Re: Is Subset Of... yehuda ben-s... 03/01/06 02:25am
Next Comment >Help | Reply To Topic