6 Sep
2025
6 Sep
'25
7:33 a.m.
[1.5, 1.6..] and [1.5, 1.6..2.0] (i.e. enumFromThen and enumFromThenTo) but enumFrom and enumFromTo making list of rounded integers seems strange to me. It seems to me that enumFromThen and -To could be implemented something like: enumFromThen beg next = beg : enumFromThen next (next+delta) where delta = next-beg similarly for enumFromThenTo, of course. i.e. depending only on functionality found in Num. Why not put these functions there, and remove Float and Double as Enum instances? What am I missing? -kzm -- If I haven't seen further, it is by standing in the footprints of giants
306
Age (days ago)
306
Last active (days ago)
0 comments
1 participants
participants (1)
-
None