alltom.com,
Archive,
Currently Reading,
Have Read,
Micro.blog
Subscribe with RSS or @tom@micro.alltom.com
This has to be the worst gotcha I’ve ever experienced in Wolfram Language!
–∞ < 1 < ∞ is True. Great.Min[{–∞, 1, ∞}] is –∞. Great.MinimalBy[{–∞, 1, ∞}, Identity] is… 1.I don’t know why. But at least TakeSmallestBy[{-∞, 1, ∞}, Identity] is –∞ as expected, so I’ll use that.