Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • $\begingroup$ If you don't insist on Sequence it might be easier $\endgroup$ Commented Feb 17, 2012 at 18:43
  • $\begingroup$ If you can solve this in a direct and robust way I think it will call into question the need for Sequence at all. $\endgroup$ Commented Feb 17, 2012 at 19:22
  • 1
    $\begingroup$ I just read this. You have plenty of answers already. I just wanted to point out that those answers that rely on building the expression on the rhs of a rule, such as the firsts of MrWizard, respect scoping so you can get things renamed if you are injecting inside a scoping construct. This means that your inject might too. Try inject[{aa -> {3, xx}}, Hold@With[{xx = 8}, Hold[{1, 2, aa}]]] $\endgroup$ Commented Jul 17, 2012 at 13:49