mirror of
https://github.com/samber/lo.git
synced 2026-04-22 15:37:14 +08:00
(fix) Correct misplaced Markdown codeblock in Some example (#862)
Tiny little fix to correct a Markdown formatting issue with the example for `lo.Some()`
This commit is contained in:
@@ -2958,14 +2958,13 @@ If the subset is empty Some returns false.
|
|||||||
```go
|
```go
|
||||||
ok := lo.Some([]int{0, 1, 2, 3, 4, 5}, []int{0, 6})
|
ok := lo.Some([]int{0, 1, 2, 3, 4, 5}, []int{0, 6})
|
||||||
// true
|
// true
|
||||||
```
|
|
||||||
|
|
||||||
[[play](https://go.dev/play/p/Lj4ceFkeT9V)]
|
|
||||||
|
|
||||||
ok := lo.Some([]int{0, 1, 2, 3, 4, 5}, []int{-1, 6})
|
ok := lo.Some([]int{0, 1, 2, 3, 4, 5}, []int{-1, 6})
|
||||||
// false
|
// false
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[[play](https://go.dev/play/p/Lj4ceFkeT9V)]
|
||||||
|
|
||||||
### SomeBy
|
### SomeBy
|
||||||
|
|
||||||
Returns true if the predicate returns true for any of the elements in the collection.
|
Returns true if the predicate returns true for any of the elements in the collection.
|
||||||
|
|||||||
Reference in New Issue
Block a user