Show substitutions in ghci

自作多情 提交于 2019-12-13 17:16:05

问题


How can I see substitutions of variable names to their values in haskell? e.g.

    c2i zero
==> c2i (Chr (\x y -> y))
==> (\x y -> y) (+ 1) 0
==> 0

As explained in this answer.

来源:https://stackoverflow.com/questions/36650044/show-substitutions-in-ghci

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!