阅读背景:

有限理解无限列表

来源:互联网 

I typed the following into ghci, thinking that one of two things would happen: 1) The interpreter would hang, searching every member of an infinite list for matches to a predicate; or 2) through behind-the-curtains Haskell jujitsu, the interpreter would somehow figure out that the sequence terminates at 4 and stop there.I typed the following into ghci, thinking that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: