On Sat, Jan 7, 2017 at 7:12 PM, Jussi Piitulainen <jussi.piitulai...@helsinki.fi> wrote: > You switched to a simpler operator. Would Haskell notice that > > def minabs(x, y): return min(x, y, key = abs) > > has a meaningful zero? Surely it has its limits somewhere and then the > programmer needs to supply the information.
If the return value of abs is int(0..) then yeah, it could. (Or whatever the notation is. That's Pike's limited-range-int type syntax.) ChrisA -- https://mail.python.org/mailman/listinfo/python-list