Idris2/tests/idris2/basic/basic036/defimp.idr
2023-09-07 14:57:22 +01:00

5 lines
111 B
Idris

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