【发布时间】:2019-05-23 11:55:12
【问题描述】:
我正在将一个列表解构为头部和尾部,但后来我需要证明他们在合并后将原始列表返回给我:
test: Bool -> String
test b = let lst = the (List Nat) ?getListFromOtherFunction in
case lst of
Nil => ""
x :: xs =>
let eq = the ((x::xs) = lst) ?howToDoIt in ""
我使用的是 Idris 1.3.1。
【问题讨论】:
标签: idris dependent-type