Can you create functions that return functions of a dependent arity in a dependently typed language?

前端 未结 3 1377
一整个雨季
一整个雨季 2020-12-30 02:56

From what I know about dependent types, I think that it should possible, but I\'ve never seen an example of this before in a dependently typed language, so I\'m not exactly

3条回答
  •  心在旅途
    2020-12-30 03:56

    I remember a paper by Stephanie Weirich on arity-generic programming in Agda which you might find relevant. It goes quite a bit further than just what you ask about, but the introductory sections might offer a good explanation.

提交回复
热议问题