How to infer the type of the Scott encoded List constructor?

前端 未结 0 1534
自闭症患者
自闭症患者 2021-02-08 05:51

Scott encoded lists can be defined as followed:

newtype List a =
    List {
      uncons :: forall r. r -> (a -> List a -> r) -> r
    }
相关标签:
回答
  • 消灭零回复
提交回复
热议问题