Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Pattern matching under Hold?' topicStudent Support Forum > General > Archives > "Pattern matching under Hold?"

Next Comment >Help | Reply To Topic
Author Comment/Response
zooloo
03/24/06 11:55pm

I have a problem with pruning away repeated members from lists, because the elements of the lists I am referring to are (and have to remain) wrapped in Hold.

For example,

Position[{Hold[\[ImaginaryI]], Hold[Complex[0, 1]]}, {a_, a_}]

doesn`t find anything, and neither does

Position[{Hold[\[ImaginaryI]], Hold[Complex[0, 1]]}, {Hold[a_], Hold[a_]}] .


How could I deal with this? Thanks for any suggestions.


zooloo


URL: ,

Subject (listing for 'Pattern matching under Hold?')
Author Date Posted
Pattern matching under Hold? zooloo 03/24/06 11:55pm
Re: Pattern matching under Hold? yehuda ben-s... 03/26/06 00:19am
Next Comment >Help | Reply To Topic