Would you ever write seq x x?
问题 I'm not entirely clear on how seq works in Haskell. It seems like it there are lots of cases where it would be useful to write seq x x and maybe even define a function: strict x = seq x x but such a function doesn't already exist so I'm guessing this approach is somehow wrongheaded. Could someone tell me if this is meaningful or useful? 回答1: seq a b returns the value of b , but makes that value depend on the evaluation of a . Thus, seq a a is exactly the same thing as a . I think the