List of Variables and manipulating them ...
- To: mathgroup at smc.vnet.net
- Subject: [mg46935] List of Variables and manipulating them ...
- From: Detlef Mueller <dmueller at mathematik.uni-kassel.de>
- Date: Tue, 16 Mar 2004 19:54:59 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hello, I have the following Idea: During a Session, a User can create some Variables, wich are all of the Form x = MyType[L_list, S_anything]. say x=MyType[{1,2,5,6},Y], y=MyType[{1,2,4,9},R], A99=MyType[{1,2,99},PI] ... and so on. Now I want to perform the following: Take All Variables wich look like MyType[L, S] and replace L by some Function of L, for example Sort L descending instead of ascending. For the given Example, after calling ChangeAllMyTypeOrders[] the Variables should changed and have the Values x=MyType[{6,5,2,1},Y], y=MyType[{9,4,2,1},R], A99=MyType[{99,2,1},S] ... and so on. Any Ideas, if and how this could be achieved? (The Problem appeared while creating Objects enriched with some Information in them, as a Term-Order. Now I want to change this Order, and update all existing objects ...) greetings Detlef Mueller