Agda: pattern matching with reverse append

后端 未结 0 674
鱼传尺愫
鱼传尺愫 2020-11-29 05:12

I wrote a function to get everything but the last element of a List from std-lib:

allButLast : ∀ {a} {A : Set a} → List A → List A
allButLast []           = l         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题