Re: Help needed with List!
- To: mathgroup at smc.vnet.net
- Subject: [mg16957] Re: Help needed with List!
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 8 Apr 1999 02:32:50 -0400
- Organization: Universitaet Leipzig
- References: <7ec5kg$cu2@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi Alvaro alvaroo at my-dejanews.com wrote: > > Sirs Probably these are FAQs but I am new in this newsgroup and I have not > been able to solve them. I use Mathematica 3.0: (i) I need to convert a long > integer number in List format. For example if I had the number 123456 I need > to convert it into {1,2,3,4,5,6}: Is it possible with an instruction? IntegerDigits[<number>,<base>] does what you want And, > (ii) I need to delete from a List A the common elements with other List B: > for example if A = {1,2,3,4} and B = {1,2} I need to delete by an instruction > the elements 1, 2 of List B from List A to obtain List C = {3,4}. Complement[A,B] Hope that helps Jens