Idris2-boot/tests/idris2/basic036/defimp.idr
Edwin Brady 2a2a20849d Add default implicit arguments
These are part of the core QTT now, so any substitutions or dependencies
will be dealt with as they should.
2020-02-25 14:09:08 +00:00

6 lines
112 B
Idris

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