This commit is contained in:
Samuel Berthe
2025-08-24 12:42:04 +02:00
parent f197601a93
commit 959a1121ef

View File

@@ -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.