From 2a790ac977ecde0f5f8224bc40aff67f0604edd6 Mon Sep 17 00:00:00 2001 From: miguel Date: Thu, 1 Feb 2024 18:02:44 +0000 Subject: [PATCH] docs(foldint) add funcs to help test --- subjects/foldint/main.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/subjects/foldint/main.go b/subjects/foldint/main.go index a0f0c53e..0b5f13a5 100644 --- a/subjects/foldint/main.go +++ b/subjects/foldint/main.go @@ -18,3 +18,15 @@ func main() { piscine.FoldInt(Mul, table, ac) piscine.FoldInt(Sub, table, ac) } + +func Add(a, b int) int { + return a + b +} + +func Mul(a, b int) int { + return a * b +} + +func Sub(a, b int) int { + return a - b +}