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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user