mirror of
https://github.com/samber/lo.git
synced 2025-09-26 20:11:13 +08:00
oops
This commit is contained in:
@@ -1518,6 +1518,8 @@ result := FilterKeys(kv, func(k int, v string) bool {
|
|||||||
// [1]
|
// [1]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[[play](https://go.dev/play/p/OFlKXlPrBAe)]
|
||||||
|
|
||||||
### FilterValues
|
### FilterValues
|
||||||
|
|
||||||
Transforms a map into a slice based on predicate returns truthy for specific elements. It is a mix of `lo.Filter()` and `lo.Values()`.
|
Transforms a map into a slice based on predicate returns truthy for specific elements. It is a mix of `lo.Filter()` and `lo.Values()`.
|
||||||
@@ -1531,6 +1533,8 @@ result := FilterValues(kv, func(k int, v string) bool {
|
|||||||
// ["foo"]
|
// ["foo"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[[play](https://go.dev/play/p/YVD5r_h-LX-)]
|
||||||
|
|
||||||
### Range / RangeFrom / RangeWithSteps
|
### Range / RangeFrom / RangeWithSteps
|
||||||
|
|
||||||
Creates an array of numbers (positive and/or negative) progressing from start up to, but not including end.
|
Creates an array of numbers (positive and/or negative) progressing from start up to, but not including end.
|
||||||
|
Reference in New Issue
Block a user