Skip to content

Commit

Permalink
Merge pull request #12 from lepijohnny/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
samber committed Mar 5, 2022
2 parents 74d4363 + 229126a commit 38cc7ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ Returns true if all elements of a subset are contained into a collection.
ok := lo.Every[int]([]int{0, 1, 2, 3, 4, 5}, []int{0, 2})
// true

ko := lo.Every[int]([]int{0, 1, 2, 3, 4, 5}, []int{0, 6})
ok := lo.Every[int]([]int{0, 1, 2, 3, 4, 5}, []int{0, 6})
// false
```

Expand All @@ -487,7 +487,7 @@ Returns true if at least 1 element of a subset is contained into a collection.
ok := lo.Some[int]([]int{0, 1, 2, 3, 4, 5}, []int{0, 2})
// true

ko := lo.Some[int]([]int{0, 1, 2, 3, 4, 5}, []int{-1, 6})
ok := lo.Some[int]([]int{0, 1, 2, 3, 4, 5}, []int{-1, 6})
// false
```

Expand Down Expand Up @@ -578,10 +578,10 @@ min := lo.Min[int]([]int{})
Search the maximum value of a collection.

```go
min := lo.Max[int]([]int{1, 2, 3})
max := lo.Max[int]([]int{1, 2, 3})
// 3

min := lo.Max[int]([]int{})
max := lo.Max[int]([]int{})
// 0
```

Expand Down

0 comments on commit 38cc7ac

Please sign in to comment.