Skip to main content
9 events
when toggle format what by license comment
Oct 3, 2017 at 13:12 comment added Szabolcs @ItaiSeggev I looked only under Details originally, but I can see how it is difficult to squeeze this in there.
Oct 3, 2017 at 5:46 comment added Itai Seggev I suggest you look at the 4th, 5th, and 7th Properties & Relations examples for Replace. I think they are documenting exactly what your trying to say.
Oct 2, 2017 at 18:11 comment added Szabolcs @Itai If you are working on the documentation pages, one difference you may want to point out is that ReplaceAll works "from the outside towards the inside" and Replace works "from the inside towards the outside". Thus it is not possible to do use Replace to do precisely what ReplaceAll does. I'm not sure how to phrase this concisely and clearly :-)
Oct 2, 2017 at 17:32 comment added Itai Seggev FWIW, I did some work in the last year (I think for 11.1, but I'd have to double check) expanding the ref pages for Replace, ReplaceAll, and ReplaceRepeated to both clarify what each did and the relationships between them, and I do address this point. But I think I'll add a simpler example focusing exactly on ReplaceAll based on this question.
Oct 2, 2017 at 17:27 comment added Itai Seggev "I recommend using ReplaceAll only when you know you need it, except for algebraic replacements" seems a bit extreme. I think better advice is "use as specific pattern as possible when using ReplaceAll", for example {_Integer,_} in this case. I guess my POV is the subtly different "Replace is way underused". It's a great function and often exactly what you need, but it isn't a substitute for ReplaceAll.
Sep 27, 2017 at 9:10 vote accept Dennis Guse
Sep 26, 2017 at 12:31 comment added Leonid Shifrin +1. You make a very good point. It is rather surprising that this has not been emphasized enough on this site for such a long time, or may be I just don't remember.
Sep 26, 2017 at 11:21 history edited Szabolcs CC BY-SA 3.0
added 106 characters in body
Sep 26, 2017 at 10:40 history answered Szabolcs CC BY-SA 3.0