We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 306755c commit 5a932deCopy full SHA for 5a932de
iter/find.go
@@ -2,7 +2,7 @@ package iter
2
3
import "github.com/BooleanCat/go-functional/option"
4
5
-// Find the first occurance of a value that satisfies the predicate and return
+// Find the first occurrence of a value that satisfies the predicate and return
6
// that value. If no value satisfies the predicate, return `None`.
7
func Find[T any](iter Iterator[T], predicate func(v T) bool) option.Option[T] {
8
for {
0 commit comments