lo for Go
Transform Go slices and maps with short generic functions.
samber · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/samber/lo at v1.53.0. Filter sample quantities and double only the positive ones.
What we tested
v1.53.0. Filter sample quantities and double only the positive ones. Kept the two positive input values and doubled them.