maxitg / SetReplace

C++/Wolfram Language package for exploring set and graph rewriting systems
MIT License
219 stars 45 forks source link

Hold being lost in SetReplace functions #173

Open maxitg opened 4 years ago

maxitg commented 4 years ago

Describe the bug The following should not remove Hold:

In[] := SetReplace[{1, 2}, {a_, b_} :> {Hold[a + b]}]
Out[] = {3}

It should do the same thing as Replace:

In[] := Replace[{1, 2}, {a_, b_} :> {Hold[a + b]}]
Out[] = {Hold[1 + 2]}

Version (please complete the following information):

maxitg commented 4 years ago

Might not be worth fixing before #67 or #401.