1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-08-10 22:31:32 +02:00

fix: introduce stateless iterator

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2023-07-24 16:43:07 +02:00
parent 8c58e8d760
commit 1713de0c3e
51 changed files with 2076 additions and 25 deletions

View File

@@ -22,6 +22,14 @@ import (
var Upper = strings.ToUpper
func Inc(i int) int {
return i + 1
}
func Dec(i int) int {
return i - 1
}
func Sum(left, right int) int {
return left + right
}