2:24 AM
@Zgarb That's really nice, I like how well it behaves with infinite lists of lists
I like infinite numbers too, I was thinking about implementing them but I couldn't decide what to do for edge cases like +inf-inf, or 0*inf... Did you just choose arbitrary results or do you have some insights on that?
By the way, since division by zero and indexing into empty lists are no longer errors (and we may want to eventually replace all sources of error with some meaningful values), we should probably implement undefined
, mostly for those challenges wich require exiting with an error, or even as an alternate way of terminating computations (even if it's harder to use like this with Haskell compared to other languages)
I also think there is a bug with your maximum/minimum, you should swap their default values because right now maximum always returns inf
and minimum -inf
Oh, and most importantly, welcome back! :D