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:
@@ -170,7 +170,7 @@ func Geq[A any](O Ord[A]) func(A) func(A) bool {
|
||||
}
|
||||
}
|
||||
|
||||
// Test whether a value is between a minimum (inclusive) and a maximum (exclusive)
|
||||
// Between tests whether a value is between a minimum (inclusive) and a maximum (exclusive)
|
||||
func Between[A any](O Ord[A]) func(A, A) func(A) bool {
|
||||
lt := Lt(O)
|
||||
geq := Geq(O)
|
||||
|
Reference in New Issue
Block a user