Idris2/tests/idris2/basic036/defimp.idr

5 lines
111 B
Idris
Raw Normal View History

import Data.Vect
dvec : (n : Nat) -> {default (replicate n 1) xs : Vect n Nat} -> Nat
dvec n = foldr (+) Z xs