view test.agda @ 10:ce192a384cb6

WIP add imple
author soto
date Thu, 11 Feb 2021 15:35:48 +0900
parents
children
line wrap: on
line source

module test where

open import Data.List
open import Data.Nat


addtest : List ℕ → ℕ → ℕ
addtest [] x = x
addtest ( x ∷ xs) y = addtest xs (y + x)