Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Is everyhing a list?' topicStudent Support Forum > General > "Is everyhing a list?"

Next Comment >Help | Reply To Topic
Author Comment/Response
Talegari
10/22/09 00:37am

Suppose we apply a function like Union of more than a list, it is done as follows (mathematica 6).

Union[{1,2,3},{2,3,4}] ...(1)

yielding an output {1,2,3,4}. But

Union[{{1,2,3},{2,3,4}}] ... (2)

is not a valid input. But note that, if we are feeding the input of the function Union which comes as an output of some other function, we usually end up in this problem as shown in (2) as output of a function is usually a list. Is there a way out?

URL: ,

Subject (listing for 'Is everyhing a list?')
Author Date Posted
Is everyhing a list? Talegari 10/22/09 00:37am
Re: Is everyhing a list? yehuda ben-s... 10/23/09 04:21am
Next Comment >Help | Reply To Topic