filters.go
func If(fn func(string) bool) Filter {
	return FilterFunc(func(arg Arg) error {
		for s := range arg.In {
			if fn(s) {
				arg.Out <- s
			}
		}
		return nil
	})
}
func If(fn func(string) bool) Filter {
	return FilterFunc(func(arg Arg) error {
		for s := range arg.In {
			if fn(s) {
				arg.Out <- s
			}
		}
		return nil
	})
}
func If ( fn func ( string ) bool ) Filter { return FilterFunc ( func ( arg Arg ) error { for s := range arg . In { if fn ( s ) { arg . Out <- s } } return nil } ) }
// If emits every input x for which fn(x) is true.
If emits every input x for which fn ( x ) is true .