A corrected quiz in my textbook is asking me how many of f's arguments are strict, f being:
f x 0 z = x == z f x y z = x My initial thought was that all of f's arguments are to be considered strict, since y is being evaluated to check if its equal to 0, and x and z are compared to see that they're both equal. And yet the answer is that only x and y are strict.
Any clues as to why?
https://stackoverflow.com/questions/66146881/function-with-strict-arguments February 11, 2021 at 07:52AM
没有评论:
发表评论