File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ func Any[Source any](source iter.Seq[Source]) (bool, error) {
13
13
if source == nil {
14
14
return false , errorhelper .CallerError (ErrNilSource )
15
15
}
16
- for _ = range source {
16
+ for range source {
17
17
return true , nil
18
18
}
19
19
return false , nil
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ func Count[Source any](source iter.Seq[Source]) (int, error) {
14
14
return - 1 , errorhelper .CallerError (ErrNilSource )
15
15
}
16
16
res := 0
17
- for _ = range source {
17
+ for range source {
18
18
res ++
19
19
}
20
20
return res , nil
Original file line number Diff line number Diff line change 5
5
require (
6
6
github.com/solsw/errorhelper v0.7.0
7
7
github.com/solsw/generichelper v0.18.0
8
- golang.org/x/exp v0.0.0-20240823005443-9b4947da3948
9
- golang.org/x/sync v0.8 .0
8
+ golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f
9
+ golang.org/x/sync v0.9 .0
10
10
)
11
11
12
12
require github.com/solsw/runtimehelper v0.2.0 // indirect
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ github.com/solsw/generichelper v0.18.0 h1:RUSpQD95rtFDnSY/2m0VUv7UnOuoY+qNy+Pia8
4
4
github.com/solsw/generichelper v0.18.0 /go.mod h1:8l4YjYBOZakA0G+wWJMK1dnbq87xp34EbP7UR9rfIBw =
5
5
github.com/solsw/runtimehelper v0.2.0 h1:lxkQiD6lKWZti1S830Ee6qSUavaCb81SWJI+0hrXios =
6
6
github.com/solsw/runtimehelper v0.2.0 /go.mod h1:86mFcvL3sela4Eiiq4/WezGLE2IoMMVlfZT52cUImjQ =
7
- golang.org/x/exp v0.0.0-20240823005443-9b4947da3948 h1:kx6Ds3MlpiUHKj7syVnbp57++8WpuKPcR5yjLBjvLEA =
8
- golang.org/x/exp v0.0.0-20240823005443-9b4947da3948 /go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ =
9
- golang.org/x/sync v0.8 .0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ =
10
- golang.org/x/sync v0.8 .0 /go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk =
7
+ golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f h1:XdNn9LlyWAhLVp6P/i8QYBW+hlyhrhei9uErw2B5GJo =
8
+ golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f /go.mod h1:D5SMRVC3C2/4+F/DB1wZsLRnSNimn2Sp/NPsCrsv8ak =
9
+ golang.org/x/sync v0.9 .0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ =
10
+ golang.org/x/sync v0.9 .0 /go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk =
You can’t perform that action at this time.
0 commit comments