I'm not sure if this is a bug or a feature, but I find the following behavior odd.
if I try
apply(set {0,1,2},x->x+1)
then M2 complains
stdio:1:1:(3): error: expected argument 1 to be a list, sequence, or an integer
and rightly so.
but now if I try
(set {0,1,2})/(x->x+1)
then the answer is
which is nice but unexpected.
unfortunately things go wrong when we try
(set {0,1,2})/(x->x//2)
instead of producing set {0,1} as one might hope, the result is
stdio:2:14:(3): error: collision of keys in hash table
because 0//2 == 1//2.
any comments?