aboutsummaryrefslogtreecommitdiffstats
path: root/skate/map.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/map.go')
-rw-r--r--skate/map.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/skate/map.go b/skate/map.go
index cf2933e..4a79c1c 100644
--- a/skate/map.go
+++ b/skate/map.go
@@ -90,6 +90,7 @@ func WithBestEffort(f Mapper) Mapper {
}
// WithSkipOnEmpty ignores results where the value at a given field is empty.
+// One indexed.
func WithSkipOnEmpty(f Mapper, index int) Mapper {
return func(p []byte) ([][]byte, error) {
fields, err := f(p)